Facebook Logout: Users changing passwords and invalid access_tokens

What version of Corona SDK are you building with?

Is this happening on iOS or Android.

Hi Sir, I am using 2014.2393. I found out a workaround for this last night, but I am hoping for a more convenient solution. So when I allow the permission the first time, it works. But when I revoke the permission so my app would ask the permissions again, it says "“Error validating Access Token”. When this happens I need to clear cache under the app settings and it works again. If I don’t, even if I logout or relogin, nothing works. This solution also clears my saved data score, so it’s kind of not a good solution. I am testing my app on an Android device. Thank you Sir.

Hey chris,

I’ve found today that I’m getting the same problem. The first time I connect Facebook, allow the permissions and save the facebook token in local, then, remove (unlink) the app on the Facebook applications, then I restart and call the graph api of facebook to know if the token is already available. It returns an error (of course), then I call the facebook.login() function and it returns me a success login, but the returned token is the previous one, before I’ve unlinked the app.

The thing is that if I call after that the facebook.logout() function and then call again the facebook.login() it will works like the first time. But I want a more convenient solution.

Did you find something else Chris?

Hi Mangoo Games, Unfortunately, no, I have not found any other solution for this. The only way for Facebook to work again is to erase app data. I’ve read so many articles that say just to logout and it should work, but it just does not work :frowning:

Yeah, for me, if I logout it erase my cached token and then in the next login it will works. But the problem is that if I restart the app I’ve no more the facebook log in so I can’t logout immediately. I have to login, to know that the token is wrong, logout and then login again.

Have you seen this page ? http://forums.coronalabs.com/topic/42051-does-facebooklogout-actually-do-anything/