将评论从开放图表对象加载到Facebook评论社交插件 [英] Load comments from open graph object into Facebook comments social plugin

查看:144
本文介绍了将评论从开放图表对象加载到Facebook评论社交插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个连接我的Facebook应用程序的网站。用户可以登录并发布连接到自定义对象的自定义操作,打开图形,javascript sdk。这也将以'fb:explicit_shared'设置为true,因此它将在用户时间轴上生成一个帖子。所以这些自定义对象有自己的url,在这些页面上我想要有评论插件。我想要该对象页面(与评论插件)和用户时间线上的帖子分享评论。



我已经尝试在 href-property在评论插件,但没有什么似乎工作。但是我已经设法通过FB.api()调用'/ objectid / comments'来获取时间线的注释。我可以使用它来构建我自己的评论,但我宁愿使用评论社交插件。有没有办法让它发生?

解决方案

Post ID和Open Graph对象ID不同,所以我不相信他们可以分享评论。评论是基于单一的Facebook ID。此外,目前不可能从API(仅限注释插件)向Open Graph Object写入注释,因此您无法真正为OG对象创建自己的注释插件。


I have created a website connected my facebook app. Users can login and post a custom action connected to a custom object with open graph, javascript sdk. This will also post with 'fb:explicitly_shared' set to true so it will generate a post on the users timeline. So these custom objects have their own url and on those pages i want to have the comment plugin. And i want that object page (with the comments plugin) and the post on the users timeline to share comments.

I have tried setting a lot of different things in the "href"-property on the comments plugin but nothing seems to work. However i have managed to get the comments of the timeline post with a call to '/objectid/comments' with FB.api(). I can use that to build my own comments ui, but i rather use the comments social plugin. Is there any way to make it happen?

解决方案

The Post ID and the Open Graph Object ID are different, so I do not believe that they can share comments. Comments are based off a single Facebook ID. Also, it is not currently possible to write comments to an Open Graph Object from the API (comments plugin only) so you can't really create your own comments plugin for an OG object.

这篇关于将评论从开放图表对象加载到Facebook评论社交插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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