Ios 将分数发布到图形Api-分数
我正试图使用Facebook的Score Api为我的iOS游戏创建排行榜,但我一直坚持将分数发布到/USER_ID/scores 这是我的密码:Ios 将分数发布到图形Api-分数,ios,facebook,api,leaderboard,Ios,Facebook,Api,Leaderboard,我正试图使用Facebook的Score Api为我的iOS游戏创建排行榜,但我一直坚持将分数发布到/USER_ID/scores 这是我的密码: NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"2000", @"score", self.facebo
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"2000", @"score",
self.facebook.accessToken, @"access_token",
nil];
[self.facebook requestWithGraphPath:[NSString stringWithFormat:@"%@/scores", self.userId]
andParams:params
andHttpMethod:@"POST"
andDelegate:delegate];
但是,我得到了这个错误:
error = {
code = 15;
message = "(#15) This method must be called with an app access_token.";
type = OAuthException;
};
Domain=facebookerdomain Code=10000“操作无法完成。(facebookerdomain错误10000)。”UserInfo=0x6ba2fd0{error={type=mutable dict,count=3,
条目=>
2:{contents=“type”}={contents=“OAuthException”}
3:{contents=“message”}={contents=“(#15)必须使用应用访问令牌调用此方法。“}
6:{contents=“code”}=15
}
}
我也用appaccesstoken试过了。没有解决
已向应用程序授予发布操作权限
文档中提到应该使用app-access令牌,但我使用app-access令牌时出现了这个错误
error = {
code = 102;
message = "A user access token is required to request this resource.";
type = OAuthException;
};
使用用户访问令牌时出现以下错误:
error = {
code = 15;
message = "(#15) This method must be called with an app access_token.";
type = OAuthException;
};
试试这个:看起来像是个虫子