gpt4 book ai didi

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

转载 作者:搜寻专家 更新时间:2023-10-30 20:19:25 25 4
gpt4 key购买 nike

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

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com