我正在使用facebook ios sdk 3.5,现在按照https://developers.facebook.com/docs/tutorials/ios-sdk-games/open-graph/中的说明和在FriendSmasher中找到的代码,我正在尝试发布分数。但是,我的Feed没有看到任何结果。
由于
这是我的游戏测试代码:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: @"100", @"score", nil];
NSLog(@"Posting new score of 100");
[FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"%llu/scores", myFBID] parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if(error){
NSLog(@"AN ERROR HAS OCCURED: %@", error.debugDescription);
}
else
NSLog(@"Score posted");
}];
请求权限是使用已弃用的函数openActiveSessionWithPermissions完成的,其中包含email和publish_actions传递
答案 0 :(得分:0)
您可以在桌面上查看您的活动记录以获取得分故事。如果你获得高分,你会看到故事,所以你可以测试。发布得分的事实并未显示在News Feed中。发布乐谱时可能会出现的故事包括传递故事(您通过朋友)或高分故事等故事。您始终可以在活动日志中查看这些类型的故事。