OpenGraph:自定义属性不显示在帖子中 [英] OpenGraph: custom properties not showing in post

查看:94
本文介绍了OpenGraph:自定义属性不显示在帖子中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为我的应用创建了自定义对象/操作/聚合.

I've create a Custom Object/Action/Aggregations for my app.

https://graph.facebook.com/10151038251679973

一切正常,但现在我想为对象添加自定义属性.

All is working fine but now I wanted to add custom properties for my object.

我已经成功添加了两个属性:when和便利.

I've successfully added two properties: when and facility.

问题是,当我共享对象(即在我的墙上张贴链接)时,自定义属性不会显示.

The problem is that when I share the object (i.e. posting the link on my wall) the custom properties does not show up.

有什么主意吗?我必须做一些其他配置吗?

Any idea? I have to do some additional configurations?

推荐答案

仅显示发布对象的自定义属性,但您可以在操作中显示'em.您应该在动作设置"(配置故事附件"部分)的标题"字段中指定类似{match.when}的内容:

Custom properties are not showed for just posted object, but you can display 'em with your actions. You should specify something like {match.when} in the "Caption" field in Action Settings (Configure story attachment section):

引用了match对象(以及上述标题)的动作一旦发布,您将看到以下内容:

Once action referencing match object (and caption as described above) published you will see something like this:

顺便说一句,有关您在调试工具中看到的与日期格式有关的警告的一些注意事项:
目前,除提供数字timestamp而不是ISO 8601日期的消息外,没有其他方法可以消除该消息(在timestamp是正确的并代表您的实际日期,您就可以忽略此类警告.该问题存在几个错误:#159315504193810

BTW, Some notes regarding warnings you see in debug tool related to Date format:
Currently where is no way to get rid of that message other that provide numeric timestamp instead of ISO 8601 date (none of samples or formats described for DateTime in Simple Types are working without a warning) . The good news that date is updated correctly even if warning displayed, so you may ignore such warning as long as timestamp displayed in Object Properties of Debug Tool output is correct and represent your actual date. There is couple of bugs exists for that issue: #159315504193810 and #302542186507947

这篇关于OpenGraph:自定义属性不显示在帖子中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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