我想编写一个函数来允许喜欢一个 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 或带有外页、对象等但不是内页的示例。