FBSDKAccessToken currentAccessToken nil after quitting app

前端 未结 4 1212
轻奢々
轻奢々 2020-12-01 15:35

I am developing an ios app using the Facebook SDK to login. I have set a LogInViewController as the initial View Controller in the Storyboard, from where the us

4条回答
  •  甜味超标
    2020-12-01 16:20

    For those who still having the problem even after set the FBSDKApplicationDelegate.sharedInstance() on the appdelegate, turn out if u get error on your Xcode console like this one

    Falling back to storing access token in NSUserDefaults because of simulator bug
    

    it is simulator bug and i try using real device and it work, the access token is not nil again.. so maybe answer @victor comment about this one on @Kal answer..

提交回复
热议问题