Skip to content

Facebook login : The session has been invalidated because the user has changed the password  #1095

Closed

Description

@umusset

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!

Environment Setup

Parse Server 2.2.0

Steps to reproduce

Very easy to reproduce

  1. Facebook log in with a user
  2. User change their facebook's password
  3. 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 !

Activity

  1. changed the title [-]Facebook log in / [/-] [+]Facebook login : The session has been invalidated because the user has changed the password [/+] on Mar 19, 2016
  2. flovilmart commented on Mar 19, 2016

    @flovilmart
    Contributor

    You should ask for a new token from the Facebook SDK directly. then link your user with the new token.

  3. umusset commented on Mar 19, 2016

    @umusset
    Author

    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

  4. flovilmart commented on Mar 19, 2016

    @flovilmart
    Contributor

    You may not even need to unlink I believe

  5. umusset commented on Mar 19, 2016

    @umusset
    Author

    Yes, it's works !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions