IOS Facebook SDK - 打开图表并在时间轴上显示,而不用单击活动日志 [英] IOS Facebook SDK - Post Open Graph and show on Timeline without clicking Activity Log

查看:114
本文介绍了IOS Facebook SDK - 打开图表并在时间轴上显示,而不用单击活动日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Facebook SDK示例代码中,当成功将开放图形对象发布到时间轴时,您必须在Facebook网站上的活动日志中单击在时间线上显示

From the Facebook SDK sample code , when successfully post the open graph object to timeline , you have to click Show on Timeline in the Activity Log on Facebook website .

如何忽略这些步骤并明确分享您的OG到时间轴?

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

----------------------------------- ----- 下面的答案:---------------------------------- ------

----------------------------------------The Answer Below:----------------------------------------

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

Just add one more code to your FBOpenGraphAction Object :

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

您应该为开放图表启用显示共享设置

And you should enable the 'explicity shared' setting for the open graph action in the Facebook Developer App Dashboard in the website.

有关更多详细信息,请查看

For more detail , look at the Document about Explicit Sharing

推荐答案

您可以使用Scocial.framework来指导在Facebook上发布。
它只是使用与ios相关的Facebook帐户内置的用户。
您将能够在时间轴上发布。

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.

这篇关于IOS Facebook SDK - 打开图表并在时间轴上显示,而不用单击活动日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆