I am having difficulty with facebook user ids in our system. After retrieving the information via the facebook api, i store the information in the database and then use the $facebook->getUser()
method on the page load to log the user in.
Here is the insert code I am using:
$user = $facebook->getUser();
//insert sql statement using $user as `fuid`
My problem is that it keeps asking for the same incorrect facebook id no matter how many times I do the following:
$facebook->destroySession()
methodIt looks like it's the id from my initial usage of the api.
Any ideas what I should be doing?
Probably you're having the "old" global ids in you database, and you app now returns app-scoped user ids.
See my answer here: Facebook user ID. Which one?