私は Facebook 3.1 を使用しており、特定の投稿にコメントしようとしています。次のコードを使用しました。セッションの作成中にも、以下の権限を使用しました。
read_stream,offline_access,publish_stream,share_item
コード:
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"This is my comment", @"message", nil];
NSString *string=[NSString stringWithFormat:@"https://graph.facebook.com/153125724720582_184234384932460/comments?access_token=%@",appDelegate.session.accessToken];
[FBRequestConnection startWithGraphPath:string
parameters:params
HTTPMethod:@"GET"
completionHandler:^(FBRequestConnection *connection,
id result,
NSError *error) {
if (error) {
NSLog(@"Error: %@", [error localizedDescription]);
} else {
NSLog(@"Result: %@", result);
}
}];
Response :
Result: {
comments = 1;
id = "https://graph.facebook.com/153125724720582_184234384932460/comments";
}
しかし、私のメッセージはコメント投稿 ID で更新されません。
Post リクエストと同じコードも試しましたが、レスポンスは次のとおりです。
Result: {
"FACEBOOK_NON_JSON_RESULT" = false;
}