FBSDKAccessToken currentAccessToken is not being updated after log in

前端 未结 2 1445
梦如初夏
梦如初夏 2020-12-10 05:06

I implemented a Facebook login button which works perfectly fine. However, after user successfully logs in into Facebook and goes back to the app, [FBSDKAccessToken cu

相关标签:
2条回答
  • 2020-12-10 05:28

    You should use the following code to listen for FB access token changes, rather than listening in the delegate methods:

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didUpdateFacebookAccessToken) name: FBSDKAccessTokenDidChangeNotification object:nil];
    
    0 讨论(0)
  • 2020-12-10 05:44

    Please check your appDelegate class and implement all the required methods of FB SDK. I am attaching a screenshot for the same.

    enter image description here

    0 讨论(0)
提交回复
热议问题