I have a small doubt , I am using facebook javascript sdk to authenticate users against their facebook account. Once the validation is done i can retrieve the required informaiton form the users profile such as full name,date of birth , email , username etc …
No in my application , other users are required to register , and I will be storing their information. i mean specifically a username and a password.
But with the facebook users how am i to keep their information ? I can store their username and obviously they dont have a password but the token or their facebook id hashed as the password , but that makes my application unsecured.
I am quite puzzled with this problem. Any help would be great.
Regards,
Gayan
How do you want to treat users that come from Facebook?
If (2), you can save user’s Facebook ID and token in your database and use them when you need them. This would be quite safe, because token is associated exclusively with your app and given privileges.