Logon through Facebook, Google, Linkedin

A number of web sites allow you to log in through Facebook, Linkedin or Google (& others).

Can someone point me to a reference that shows the technical details of how that is done?

Thanks
Richard KortsBusiness Owner / Chief DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Leslie BloomCorporate & Product Marketing ManagerCommented:
This Facebook Developers page should be helpful - https://developers.facebook.com/docs/facebook-login/v2.3

Here's the Google Developers information - https://developers.google.com/+/features/sign-in
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
F PCommented:
It's done through using what's known as OAuth.

http://oauth.net/

I recommend having a look here to find out all the things you can do with it,

http://openid.net/
0
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
Perfect.

Thanks
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

F PCommented:
... Google provides it all in one nice package and also the OAuth basics here as well... https://developers.google.com/identity/
0
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
To all,

Can you refer me to an EXAMPLE of the HTML / Javascript needed to actuall display a login button (Facebook)?

Thanks
0
F PCommented:
https://developers.facebook.com/docs/php/FacebookRedirectLoginHelper/4.0.0

I am assuming you mean something like that? I think the login itself is dependent on your designed site for styling in CSS or HTML layout. There's also this:

https://developers.facebook.com/docs/php/FacebookJavaScriptLoginHelper/4.0.0

... for JavaScript.

There's also this next one that will give you a bit of HTML and JavaScript for styling a login with Facebook page:

https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.3
0
F PCommented:
The last link I posted shows you would just use code similar to this:

<fb:login-button scope="public_profile,email" onlogin="checkLoginState();">
</fb:login-button>
0
Richard KortsBusiness Owner / Chief DeveloperAuthor Commented:
0
F PCommented:
Your problem is that you're not putting your app id in where it says this:

window.fbAsyncInit = function() {
  FB.init({
    appId      : 'xxxxxxxx',
    cookie     : true,  // enable cookies to allow the server to access
                        // the session
    xfbml      : true,  // parse social plugins on this page
    version    : 'v2.2' // use version 2.2
  });
0
F PCommented:
Go to settings, then the Advanced tab. At the bottom "Embedded browser OAuth Login" - Please verify it's enabled. If that doesn't work, also put in http://  in front of your domain.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.