E
E
e_asphyx2014-09-05 20:35:39
Facebook
e_asphyx, 2014-09-05 20:35:39

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

1 answer(s)
V
Vladimir Goncharov, 2014-09-05
@e_asphyx

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 question

Ask a Question

731 491 924 answers to any question