Facebook login is failing after Facebook Auth Access Token is changed

193 views
Skip to first unread message

pet...@frogsy.com

unread,
Jun 15, 2016, 2:59:22 AM6/15/16
to back{4}app
Hi again,

This is an informative topic regarding an issue with parse-server I've noticed while testing our migrated parse project.

It seems to be an issue with parse-server regarding refreshing users' Facebook access tokens, when those tokens are changed (e.g. in cases of Removing a game from Facebook->app settings, or changing Facebook password, or anything else that will force an Access Token renewal by Facebook). It is in troubleshooting state at the moment in the parse-community (I think). 
You can find more of this issue here: https://github.com/ParsePlatform/parse-server/issues/1735

To reproduce, simply:
1. Login with a user through ParseFacebook login ([PFFacebookUtils logInInBackgroundWithReadPermissions:..]-iOS, ParseFacebookUtils.logInWithReadPermissionsInBackground-Android).
2. Change password of that Facebook Account or change remove app from Facebook->Settings->App Settings.
3. Refresh User in the app (FBSDKAccessToken refreshCurrentAccessToken, or just re-login to the app through Facebook).
4. Try to do something with that user and parse-server (use a cloud function, or try to request that user's data etc).

You will get an error saying something along the lines of "Please log into this app again to reconnect to your Facebook account.".

To make sure that our code was working ok, I changed the [Parse initializeWithConfiguration] to show back to Parse, instead of the Parse-server, and everything works fine.

Therefore, it's a parse-server issue. 

If you have the time to look into it, you will also greatly help the Parse community!

Cheers!

Davi Macêdo

unread,
Jun 18, 2016, 12:42:05 PM6/18/16
to back{4}app
Thank you Petros. We will take a look on this issue soon and help the community. Best.
Reply all
Reply to author
Forward
0 new messages