FBSDKAccessToken currentAccessToken is not being updated after log in

前端 未结 2 1492
梦如初夏
梦如初夏 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];
    

提交回复
热议问题