ios - 如何在成功的 FB ShareDialog 帖子后获取帖子 ID

标签 ios objective-c facebook-graph-api facebook-ios-sdk facebook-sharer

我指的是 Facebook 的“ios 3.5 how to”。这是我的代码

[FBDialogs presentShareDialogWithParams:params
                        clientState:nil
                            handler:
 ^(FBAppCall *call, NSDictionary *results, NSError *error) {
 if(error) {
     // If there's an error show the relevant message
     [self showAlert:[self checkErrorMessage:error]];
 } else {
     // Check if cancel info is returned and log the event
     if (results[@"completionGesture"] &&
         [results[@"completionGesture"] isEqualToString:@"cancel"]) {
         NSLog(@"User canceled story publishing.");
     } else {
         // If the post went through show a success message
         [self showAlert:[self checkPostId:results]];
     }
 }

在结果中我只得到值为 1 的 didComplete 键。我怎样才能得到 post_id?

最佳答案

使用字典

call.dialogData.clientState

关于ios - 如何在成功的 FB ShareDialog 帖子后获取帖子 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16926400/

相关文章:

java - Android Facebook sdk GraphRequest 在获取用户信息时返回 null

facebook-graph-api - Facebook Graph API 过滤器 - 有哪些可用选项?

Facebook "Like"大约 2 天前按钮不再发布到墙上

ios - xcode Interface Builder 未更新 IBDesignable 类

ios - 在安装的 phonegap 中使用拖放

ios - "Myapp would like to send you push notifications"消息没有出现在我的应用程序中,但它仍然允许出现推送通知

objective-c - 文件属性是否包含毫秒? Objective-C

ios - UINavigationController 剪辑 subview

ios - '不安全指针<UInt8 >' is not convertible to ' 不安全指针<_>'

ios - 单例不返回任何图像