Facebook and twitter login with Parse iOS only works once

后端 未结 2 1660
猫巷女王i
猫巷女王i 2021-01-24 22:29

I\'m using the twitter and Facebook login in the Parse SDK. For every app launch I can log into each service once, but when I logout using [PFUser logOut] I am unable to log in

2条回答
  •  情话喂你
    2021-01-24 23:32

    In you logout method, you should clear the Facebook session token as well like below:

    [[FBSession activeSession]closeAndClearTokenInformation];
    

    This will clear the active Facebook session's token.

提交回复
热议问题