我正在使用 iOs 社交框架来检索某个用户的 facebook feed。
为此,在进行身份验证后,我将执行以下操作:
NSURL *requestURL = [NSURL URLWithString:@"https://graph.facebook.com/username"];
SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeFacebook requestMethod:SLRequestMethodGET
URL:requestURL parameters:nil];
request.account = self.facebookAccount;
[request performRequestWithHandler:^(NSData *data, NSHTTPURLResponse *response, NSError *error) { ... }];
响应返回:
error = {
code = 803;
message = "(#803) Cannot query users by their username (username)";
type = OAuthException;
};
如果我使用同样的作品/me
而不是用户名,但我想检索其他人的公共提要。
我还尝试使用用户的 id,它也适用于我的用户,但它不适用于其他用户,请求返回以下内容:
code = 2500;
message = "The global ID 100008339709776 is not allowed. Please use the application specific ID instead.";
type = OAuthException;
我还尝试将访问令牌作为参数传递,但行为是相同的。
有任何想法吗?
已经在评论中指出,但您不应该再使用该用户名,并且您无法访问未授权您的应用程序的用户的数据。
变更日志:https://developers.facebook.com/docs/apps/changelog https://developers.facebook.com/docs/apps/changelog
(只是想提高回答率)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)