93

从 Facebook SDK 示例代码中,当成功将打开的图形对象发布到时间线时,您必须在 Facebook 网站上的Activity Log中单击Show on Timeline 。

How to ignore these steps and explicitly share your OG to timeline?

4

2 回答 2

1

我已将此答案移出@isaacselement 问题。


只需向您的FBOpenGraphAction对象添加一个代码:

id<FBOpenGraphAction> action = (id<FBOpenGraphAction>) [FBGraphObject graphObject];
[action setObject: @"true" forKey: @"fb:explicitly_shared"];  // This is the key point!

您应该在网站的Facebook 开发者应用仪表板中为打开图形操作启用“显式共享”设置。

有关详细信息,请查看有关显式共享的文档

于 2021-10-28T13:49:41.953 回答
-8

You can use Scocial.framework for to directy post on facebook. It just use users built in facebook account associated with ios. And you will be able to post on timeline.

于 2013-06-26T07:10:56.643 回答