I am planning to integrate “Login With Facebook” feature into my iPhone/Android App; and I have a PHP back-end for maintaining user details.
I am confused as to what is the standard way in which this feature should be implemented?
Is it that – After the user gets successfully authenticated by Facebook, should I fetch his/her details and ask him for a password to register him to my back-end or is there something else which needs to be done & I am not aware.
Please suggest the standard way of implementing this feature.
Thanks.
Login with facebook button
Redirect a new user to facebook for required permissions
Prefill your register form with details from facebook and a password for your site.
Save details of the user in your backend.
When the connected user logins again
Check for active facebook session
Get the userID of current facebook user is equal to that saved in your database log him in
else show registration form.