使用Facebook iOS SDK 2,我如何喜欢一个页面? - “申请必须是白名单” [英] using Facebook iOS SDK 2, how do I like a page? - "Application must be on whitelist"

查看:235
本文介绍了使用Facebook iOS SDK 2,我如何喜欢一个页面? - “申请必须是白名单”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用新的Facebook iOS SDK喜欢页面? (http://github.com/facebook/facebook-ios-sdk)

How do I "like" a page using the new 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应用程序白名单中的白名单。

I have added my IP (the IP address my computer, as I'm running from the simulator, gets when visiting www.whatismyip.com ) to the whitelist in my Facebook application's white list under advanced settings.

谢谢!

Tristan

Thanks!
Tristan

推荐答案

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

It looks like it's a well known, but unconfirmed, bug: http://bugs.developers.facebook.net/show_bug.cgi?id=10714.

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

It may help if you voted for the bug in Facebook's bug tracker.

这篇关于使用Facebook iOS SDK 2,我如何喜欢一个页面? - “申请必须是白名单”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆