gpt4 book ai didi

iphone - 使用 Facebook iOS SDK 2,我如何喜欢一个页面? - "Application must be on whitelist"

转载 作者:行者123 更新时间:2023-11-30 05:24:13 25 4
gpt4 key购买 nike

如何使用新的 Facebook iOS SDK 为页面“点赞”? (http://github.com/facebook/facebook-ios-sdk)

我目前正在尝试使用:

NSMutableDictionary *dict = [[NSMutableDictionary alloc] initWithObjectsAndKeys:[_facebook accessToken],@"access_token",nil];
[_facebook requestWithGraphPath:@"cocacola/likes" andParams:dict andHttpMethod:@"POST" andDelegate:self];

这行不通。当我 NSLog([error description]); 我得到:

Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x6a50160 {error=<CFBasicHash 0x6a4fd40 [0x250b380]>{type = mutable dict, count = 2,
entries =>
2 : <CFString 0x6a4fc80 [0x250b380]>{contents = "type"} = <CFString 0x6a50000 [0x250b380]>{contents = "OAuthException"}
3 : <CFString 0x6a500e0 [0x250b380]>{contents = "message"} = <CFString 0x6a50080 [0x250b380]>{contents = "(#3) Application must be on whitelist"}
}
}

我已将我的 IP(我的计算机的 IP 地址,当我从模拟器运行时,访问 www.whatismyip.com 时获得)添加到高级设置下我的 Facebook 应用程序白名单中的白名单。

谢谢!
特里斯坦

最佳答案

看起来这是一个众所周知但未经证实的错误:http://bugs.developers.facebook.net/show_bug.cgi?id=10714 .

如果您在 Facebook 的错误跟踪器中为错误投票,这可能会有所帮助。

关于iphone - 使用 Facebook iOS SDK 2,我如何喜欢一个页面? - "Application must be on whitelist",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3809652/

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