0

我想做的事

从我的应用程序向朋友的提要发布文本。

或者

与标记的朋友一起将文本发布到我自己的提要中。

我试过的

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

这不起作用,因为您既不能在文本中也不能将其中的任何朋友标记为“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];

这不能用作 fields captiondescription并且name仅在link指定 a 时使用。但我不想指定链接。

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

编辑

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

4

1 回答 1

2

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

你应该考虑使用[FBRequestConnection startForPostWithGraphPath:

于 2013-07-16T10:53:39.430 回答