我正在使用以下代码来获取我的 facebook 朋友的游戏分数。
-(void)GetFriendScore
{
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[NSString stringWithFormat:@"%@", [FBSDKAccessToken currentAccessToken]], @"access_token",
nil];
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/me/scores"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
}];
}
并得到以下格式的响应
{
data = (
{
user = {
id = XYZ;
name = "XYZ";
};
}
);
}
但这不是预期的反应。我预期的甲方正在关注
{
data = (
{
application = {
category = Games;
id = XYZ;
link = "https://www.facebook.com/games/?app_id=XYZ";
name = "XYZ";
};
score = 2907;
user = {
id = XYZ;
name = "XYZ";
};
}
);
}
谁能帮我得到正确的答复?