I have a question about a facebook login on my webapplication.
Users can either login with facebook or register manually.
After registering manually, the user is added to the database ‘users’.
When users login with facebook for the first time, the same happens (however, no password is added to the database)
My question: is it possible to allow people that have logged in with facebook to use the ‘normal’ login form, the one that the users that have registered manually? How to check if the password that the user has entered matches their facebook password?
Or is this completely impossible?
btw, I am using codeigniter
The only possible way to do this, is to ask them for a password after they sign in. This way, they will be able to login using facebook, or their email address and the password they just specified.
There is no way to make sure the password is the same as Facebook’s, and I don’t recommend going that way, even if that was possible (Not possible and will get you into trouble with facebook TOS). It’s up to your users to choose the password they want.