Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Explain how FB connect authentication works

I am working on a site that will allow users to create an account. Then website developers will be able to integrate that authentication system into their site and allow users to login with my sites login credentials. I am wanting to do it similar to the way facebook connect works so that the users site does not need to redirect to my site to login then we do a callback back to the page they came from.

I know facebook uses cookies but I am not sure how they are checking to see if they are logged in.

Things I have noticed:

  • If logged into facebook.com then you navigate to userssite.com that has Facebook Connect it will show you as logged in.
  • If you log out of userssite.com it will also log you out of facebook.
  • If you are logged out of facebook.com and login to userssite1.com then navigate to userssite2.com it will have you logged into that site as well.

Because of this, it looks like they are using cross domain cookies or something but I am not sure how to do this.

Can someone with knowledge of how Facebook Connect works exactly, explain how I can achieve this functionality in my own system?

like image 385
Bot Avatar asked Jul 08 '11 15:07

Bot


People also ask

What is Facebook Connect and how does it work?

Facebook Connect is a way for Web or application developers to help their users to connect and share content with their friends, both on and off Facebook. This can increase a site or application's interaction with its users.

How does account authentication work?

In authentication, the user or computer has to prove its identity to the server or client. Usually, authentication by a server entails the use of a user name and password. Other ways to authenticate can be through cards, retina scans, voice recognition, and fingerprints.


1 Answers

Facebook is moving largely to a OAuth 2.0 based solution. Our authentication guide and the official OAuth 2.0 draft spec are good places to start.

like image 123
daaku Avatar answered Sep 30 '22 17:09

daaku