私はfacebook ios sdk 3.5を使用していますが、ここにある指示に従っています https://developers.facebook.com/docs/tutorials/ios-sdk-games/open-graph/とFriendSmasherにあるコード、私は試していますスコアを投稿します。ただし、フィードに結果が表示されません。
ありがとう
これは私たちのゲームのテスト コードです。
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 が渡されます