gpt4 book ai didi

ios - "[[FBSDKAccessToken currentAccessToken] hasGranted:@"publish_actions "]"总是返回 false

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:00:09 24 4
gpt4 key购买 nike

我正在尝试验证我是否拥有 publish_actions 权限。总是假的。即使当我请求并获得 publish_actions 并获得 succeeded=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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com