[eluser]JanDoToDo[/eluser]
Hey guys.
Im trying to integrate the facebook API so that users can log onto my site using facebook and have come into some problems in how im thinking.
My question is how does this actually work with regards to the database?
I have existing users as well as new users that i want to be able to log in with facebook. However, with the existing users, how do I know which user the facebook information relates to. Obviously, if they click the "login with facebook icon" then I have none of their information from my own database.
Also, with new users, do i have to store another field in my database now - user_id as well as facebook_id to compare against to see which user it is?
Any thoughts much appreciated.
Cheers :-)