iOS,facebook sdk。像组页面具体例子的按钮?

时间:2013-05-16 07:57:37

标签: ios facebook facebook-like facebook-group

我想编写一个允许喜欢facebook组的功能。我的代码大致如下:

NSString *urlString = [NSString stringWithFormat:@"%@/likes", fbIdentifier];
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
if (!facebook.accessToken) {

    [self login:nil];
    return;
}
[facebook requestWithGraphPath:urlString andParams:dict andHttpMethod:@"POST" andDelegate:self];

结果是:

Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x1dd77bc0 {error={
    code = 3;
    message = "(#3) Application does not have the capability to make this API call.";
    type = OAuthException;
}}

我的问题不是重复的,因为很多答案都是指旧版的facebook sdk或外页,对象等的例子,而不是内页。

1 个答案:

答案 0 :(得分:1)

您不能禁止使用Graph API页面,您只能喜欢对象(网址,图片)。