gpt4 book ai didi

ios - FBDialogs 在成功时检索 post_id

转载 作者:行者123 更新时间:2023-11-29 03:02:45 26 4
gpt4 key购买 nike

我正在使用 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);

}
}];

结果词典中没有任何内容

谢谢

最佳答案

我认为结果字典中没有关于帖子的任何信息的原因是 Facebook 不希望应用程序开发人员知道是否确实发布了帖子。

用户可以中止发布内容,但应用仍会报告为成功。

关于ios - FBDialogs 在成功时检索 post_id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23132214/

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