Last post Oct 18, 2016 06:24 AM by Brando ZWZ
Oct 17, 2016 08:42 AM|PrinceTegaton|LINK
Oct 18, 2016 06:24 AM|Brando ZWZ|LINK
Hi Prince Tegaton,
1. Does facebook send any value i can use as the password or hash it on my own?
As far as I know, Facebook will return the public info like userid, first name, last name, e-mail and so on.
I don't think it will send any value you could use as password.
I suggest you could add a register page after facebook login success.
In that page, you could let user register password and E-mail.(E-mail is facebook e-mail).
By this way, you could load info from your database on subsequent login.
3. Am i to make any change to my table to tell if its a direct site registration or a facebook login?
I don't think you need to make any change to your table to tell is this a facebook login.
Because if this is a facebook login, you could check its e-mail in the database to know the userID.
Besides, in identity, we could use owin to achieve social login very easily.
More details about it, you could refer to follow code: