FBSDKLoginManager logInWithPublishPermissions always returns isCancelled=YES

前端 未结 11 1390

I am having trouble figuring out how to log a user into my app. [FBSDKAccessToken currentAccessToken] is nil, so I am calling:

[[[FBSDKLoginMana         


        
11条回答
  •  萌比男神i
    2020-12-01 14:37

    Also, make sure you are not calling for FBSDKAccessToken.currentAccessToken INSIDE your didFinishLaunchingWithOptions method. The setup in didFinishLaunchingWithOptions needs to complete so the token can initialize before you try to log in to Facebook.

提交回复
热议问题