FBSDKLoginManager logInWithPublishPermissions always returns isCancelled=YES

前端 未结 11 1388

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

[[[FBSDKLoginMana         


        
11条回答
  •  长情又很酷
    2020-12-01 14:25

    This can happen when your Facebook App doesn't have "publish_actions" permission, or you're not using a test user.

    On Facebook, go to manage your app, then make sure that the Facebook user you're using is defined under "Roles" as an admin or tester.

    If it's not a test user or admin - Facebook will require "publish_actions" permission to be reviewed and approved before allowing your app to use it, until then you'll receive a "isCancelled=YES" result.

    After testing your app with this permission, it is possible to submit this permission for review, you'll need to upload a binary that demonstrates usage of this permission with exact details on how to use it. After it's approved, you'll be able to use it with non-test Facebook users.

提交回复
热议问题