Answer the question
In order to leave comments, you need to log in
Copy to the database the data of the user logged in via OAuth (Facebook)?
I know that OAuth is not intended for authentication, but what if modern social networks use it... In general, what to do: does it make sense to create a table of local users with mapping Facebook user id to local id? Or is it easier to score and identify users by Facebook id? And what to do with the profile data (name and avatar): is it worth copying them to yourself (and they may change later)? Otherwise, you will have to pull out the access_token in JavaScript for an asynchronous request.
Answer the question
In order to leave comments, you need to log in
Well, saving them will be useful if you have, for example, a forum. And with each input, for good, they need to be synchronized. If you do not need a username and other information in his absence, then you can store the data in the session after logging in.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question