问题描述
我正在尝试使用JS API将操作发布到Facebook时间轴上
I am trying to post a Action to the Facebook Timeline using the JS API
FB.api('/me/application:action_type' + '?opject_type='+document.location.href,'post',
function(response) {
if (!response || response.error) {
alert("error");
} else {
alert("success");
}
});
发布效果很好,API没有返回错误。新活动将显示在时间轴上,但只会在近期活动框中显示为小文本:
Posting works quite well and the API returns no error. A new activity appears at the Timeline but only as a small text within the "recent activities" box which looks like this:
如果未如附件中所示显示操作,可能是问题所在动作类型设置的预览?看起来像这样:
What could be the problem if the action is not displayed like in the Attachment Preview of the Action Type Settings? Which look like this:
我已经链接了对象类型中的所有属性,并使用,看起来所有属性都可以被Facebook抓取工具正确解析。
I have linked all the properties from the Object Type and tested my Object URL with the Facebook Debugging Tool and it looks like all the attributes can be parsed correctly by the Facebook scraper.
我还为操作类型定义了一个聚合布局。那么,为什么没有显示附件的原因是什么?
I also defined a aggregation layout for the action type. So what can be the reason that no Attachment is displayed?
推荐答案
我也将此问题报告为Facebook的错误。他们的答复是,此行为是设计使然的,并且附件布局仅显示在活动日志中或将多个活动发布到用户时间轴时。
I also reported this issue as a bug to facebook. Their reply was that this behavior is by design and the attachment layout only appears in the activity log or when multiple activities have been posted to a users timeline.
这篇关于时间轴操作布局-未显示附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!