I made some research and i can\'t seem to completely undestand how to integrate facebook login with your website.
I\'m trying to do this for an old fashioned php sho
Before Outh/OpenID we use to ask user on our website to give there username and password for respected site like facebook , google . Then using Curl we fetch the data from these social sites on behalf of our user . Then this data becomes the source of our Registration form data .Like asking for his name , email , gender in registration form can be skip-ed .
Since user might fear giving there username and password to every site hence there comes a need of Outh . Now we simply redirect the user to facebook , facebook asks for user password . And redirects the user back to our site with auth token appended on url . Which we can get access through $_GET . Using this token we can query facebook for everthing related to that user and hence can skip registration form once again. This data gets stored in table which was meant for Registration Form fields storage .
(This is just an overview there are other steps as-well to take care off )