我指的是 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/