0

FBDialogs を使用してリンクを共有しています。追跡の一環として、その共有投稿の post_id をサーバーに返したいと考えています。

成功時にpost_idを取得するにはどうすればよいですか

[FBDialogs presentShareDialogWithLink:params.link
           name:params.name
           caption:params.caption
           description:params.description
           picture:params.picture
           clientState:nil
           handler:^(FBAppCall *call, NSDictionary *results, NSError *error) {
               if(error) {
               // An error occurred, we need to handle the error
               // See: https://developers.facebook.com/docs/ios/errors
               NSLog(@"%@",[NSString stringWithFormat:@"Error publishing story: %@", error.description]);
               } else {
               // Success
               NSLog(@"result %@", results);

               }
}];

結果辞書に何も​​ありません

ありがとう

4

2 に答える 2

1

結果ディクショナリに投稿に関する情報がない理由は、Facebook がアプリ開発者に実際に投稿が行われたかどうかを知らせたくないためだと思います。

ユーザーは投稿を中止できますが、アプリには成功として報告されます。

于 2014-04-17T11:50:36.160 に答える