An odd question, but hopefully someone has an answer.
I am developing a mobile application that will connect to Facebook. Everything worked fine and was about a week. I can authorize and delete authorization and send messages to the user's feed.
On Saturday or Sunday, I changed my request to add offline_access. Around this time (unfortunately, I canโt say exactly when), I began to receive refusals, stating that the access token was invalid ("Access token validation error: the session was invalid because the user changed the password").
I know this is a lie, because I did not change my password, and I just received an access token, and the answers were all right. In fact, I submit to the feed immediately after receiving authorization ("Hey, I use TheApp"), and this message fails with the above error.
Here, where he escalates: I went to the Facebook mobile app to check access and connection. Suddenly, the official FB app starts giving me the same problems. It starts to appear login dialogs. I enter my password, it shows a toast that says that the login has been completed successfully, and then a few seconds later it asks for the login again. After an attempt or two of it, he finishes showing another toast with an invalid token message on top.
I clean my application, uninstall it, log out and clear all FB data (using Manage Apps in the device settings) and force stop the application. I cannot remove FB so that I can do everything I can. I also go to the FB website and change my FB password. Iโll return to the FB application, log in again and before the feedโs activity even finishes downloading, it will prompt me my password again and we will return to this old cycle. I try my application and its in the same bucket (not surprisingly).
Two more data points:
- Sometimes I can get the same behavior using the Graph API Exlorer web application. I can do this sequentially with the token for the Graph API itself, and I can get it inconsistently with the access token from my application.
- I ran the emulator (one without the FB application) and ran my application there. Logging in, how can I get an access token, and everything works. My messages for the application in my channel without any complaints.
At this point, FB (and, apparently, any application for connecting FB) is on my real device. This is either just a device or a combination of a device plus my account (I don't have another FB account).
Can someone shed some light on what I need to do to debug this further or clear it?