The implementation of the PhoneGap application for Android and iOS, the application uses Facebook Connect and PhoneGap Facebook Connect Plugin ( https://github.com/davejohnson/phonegap-plugin-facebook-connect ). A few days ago I had a problem with access_token, but only on Android, the same script works on iOS without problems. Step by step:
- Initiate facebook. (using plugins function)
- Log in to facebook. (using the plugin function) (requesting permissions: "email user_birthday publish_stream offline_access")
- Make an api / my call using the returned token.
Step 3 returns an error, and when I take the URL and put it in the desktop browser, it gives me the error "The session was invalid because the user changed the password."
The sandbox / non-sandbox app does not make any difference.
Exactly the same steps in iOS work fine.
I saw a lot of questions about SOF and facebook about this, but they all refer to letting the user perform the authentication flow again or solve the problem in a few days ... Is there anyone who can confirm that this is really a facebook error ? Or is there a solution? Or can it explain why it works on Android and not iOS? Maybe this could be connected with me in iOS, not using the facebook application, but preferring to always go through OAuth in the browser?
Thanks for any tips!
EDIT:
Other related issues have been discovered that seem to have the same root cause as mine.
How to remove all potentially cached tokens or session IDs on Android?
Instant access token
source share