我正在尝试验证我是否具有publish_actions权限。总是假的。即使当我请求并获得publish_actionssucceeded=TRUE时,重新验证仍然返回false。

任何想法?

bool bGranted_publish_actions=[[FBSDKAccessToken currentAccessToken] hasGranted:@"publish_actions"];

bool bGranted_user_photos=[[FBSDKAccessToken currentAccessToken] hasGranted:@"user_photos"];

if (!bGranted_user_photos || !bGranted_publish_actions ){
    [PFFacebookUtils linkUserInBackground:[PFUser currentUser] withPublishPermissions:@[@"publish_actions"] block:^(BOOL succeeded, NSError *error) {

        if (succeeded) {
            bool bGranted_publish_actionsV2=[[FBSDKAccessToken currentAccessToken] hasGranted:@"publish_actions"];

最佳答案

在Parse sdk版本1.7.3中解决。

关于ios - “[[[FBSDKAccessToken currentAccessToken] hasGranted:@“publish_actions”]“始终返回false,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30143083/

10-10 09:43