Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6890955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:20:52+00:00 2026-05-27T06:20:52+00:00

I’ve looked at roughly 50 questions on this site, but none really provide a

  • 0

I’ve looked at roughly 50 questions on this site, but none really provide a solution that is either up to date or doesn’t require a third part pluggin (I want to keep control of the information and not give other people access to the info I get) or that is complete. I’ll take the risk of posting it, and cross my fingers.

I’ve seen a bunch more but here are some I looked at:

  • include facebook and twitter as login option
    (all answers are third party solutions)
  • https://stackoverflow.com/questions/76184/php-tutorial-for-openid-and-oauth
    (3yeras old, there must be easier implementation)
  • http://wiki.openid.net/w/page/12995176/Libraries => this looks good,
    but I’m still confused.

So I’m looking to have Facebook, Google and Twitter as login options on my site (Apparently, that is 80% of peoples preferred social login method).
If I go to the wiki.openid.net, which package would you advise me to use in PHP for easy implementation? Which one did you use in the past?

Also, if possible, can you give explanations on how to implement the advised library? ie,

  1. I download it, put it on my site,
  2. then get an openID for my site,
  3. then use the the http://code.google.com/p/openid-selector/ for the
    display…

Is this right? I have no idea…

Basically a step by step guide would be awesome. I’m sure anyone who takes time to answer this will get massive points, this is hot topic.

Thanks for the help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:20:53+00:00Added an answer on May 27, 2026 at 6:20 am

    So you want to implement Google and Facebook/Twitter login, without using a third party service. That means you need to implement OpenID login (for Google) and OAuth (for Facebook/Twitter).

    First OpenID. You can download LightOpenID a nice lightweight OpenID class for PHP. Quite easy to implement. Some samplecode how to use this class.

    // Set up your OpenID object
    $openid = new LightOpenID('http://yourdomain.com');
    $openid->returnUrl = 'http://yourdomain.com/after/login/user/goes/here';
    $openid->identity = 'https://www.google.com/accounts/o8/id'; // OpenID provider URL
    $openid->required = array('namePerson/friendly', 'contact/email');
    
    // Step 1: Redirect the user to the OpenID provider
    if (!$openid->mode) // If not authenticated
        header('Location: ' . $openid->authUrl()); // Redirect to provider
    
    // Step 2: User returned, sign the user into our application
    if ($openid->validate()) { 
        // OpenID authentication is successful
        // Sign in the user and read requested attributes
        $attrArray = $openid->getAttributes();
    }
    

    That should get you started with the OpenID part. The OpenID selector is nothing more then a selector for the identity URL.

    Then implementing OAuth sign in to support Facebook and Twitter sign in. There is quite some documentation on how to implement Facebook and Twitter login support.
    For Facebook you should read the developer site on authentication it’s not too complicated. Twitter uses the same protocol and also has quite nice documentation on this topic.

    If you don’t want to implement it yourself take a look at OAuth libraries that you can include in your application like socialoauth (supports both) or twitteroauth (supports twitter). Google will help you find a lot more libraries like this.

    Just start implementing with a library read the code, comments and docs and ask questions on StackOverflow if your stuck. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
This could be a duplicate question, but I have no idea what search terms
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.