Facebook login : The session has been invalidated because the user has changed the password
For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.
Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!
- [x ] You've met the prerequisites.
- [x ] You're running the latest version of Parse Server.
- [ x] You've searched through existing issues. Chances are that your issue has been reported or resolved before.
Environment Setup
Parse Server 2.2.0
Steps to reproduce
Very easy to reproduce
- Facebook log in with a user
- User change their facebook's password
- Try to re-log in -> Error : The session has been invalidated because the user has changed the password
I try to unlink the facebook account but now the user is link with nothing, so he can't log in with facebook anymore...
Thanks !
You should ask for a new token from the Facebook SDK directly. then link your user with the new token.
Thanks ! I find after 4h :)
For the others, you can use
PFFacebookUtils.unlinkUserInBackground(PFUser.currentUser()!, block: { (bol, ero) -> Void in
PFFacebookUtils.linkUserInBackground(PFUser.currentUser()!, withReadPermissions: ["public_profile","user_friends","email"], block: { (bolo, eror) -> Void in
})
})
when you detect the error
You may not even need to unlink I believe
Yes, it's works !