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.
We had the same situation..
So what I did was:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With