gpt4 book ai didi

ios - iOS 上的 FBDialog

转载 作者:行者123 更新时间:2023-11-28 22:30:03 25 4
gpt4 key购买 nike

我想做什么

从我的应用程序向 friend 的动态消息发布文本。

与标记的 friend 一起将文本发布到我自己的供稿中。

我尝试过的

[FBDialogs presentOSIntegratedShareDialogModallyFrom:self
initialText:@"Some text!"
images:nil
urls:nil
handler:nil];

这不起作用,因为您不能在其中标记任何 friend ,既不能在文本中也不能作为“with”标记。

FBShareDialogParams *params = [[FBShareDialogParams alloc] init];
params.caption = @"Some text";
params.friends = selectedFriends;
params.description = @"Some text";
params.name = @"Some text";

[FBDialogs presentShareDialogWithParams:params
clientState:nil
handler:nil];

这不起作用,因为字段 captiondescriptionname 仅在 link 时使用被指定。但我不想指定链接。

有什么方法可以理想地发布到 friend 的“墙”/提要。或者至少与标记的 friend 发布一些文本?

编辑

好吧,通过第二种方法,我至少可以标记 friend 。有没有办法在第二种方法上设置初始文本?

最佳答案

这里有一些有用的信息:https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/publish-open-graph-story/

您应该考虑使用 [FBRequestConnection startForPostWithGraphPath:

关于ios - iOS 上的 FBDialog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17673964/

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