Embed full comments from Facebook post

我们两清 提交于 2021-02-07 10:57:18

问题


I want to embed a whole list of comments from a Facebook post into web page. I googled around but found that Facebook only supports embedding "single" comment.

For example, I create a post in my Facebook post and my friends comment on the posts. Now I want to embed all my friends' comments into my blog, without the post content.

Is this currently officially supported by Facebook? Or is there any 3rd party library can help to render the comments following Facebook UI style?

Thanks in advance.


回答1:


Take a look at "Comment Mirroring" with the Comments Plugin in the docs: https://developers.facebook.com/docs/plugins/comments

It may be what you need, but afaik it only works with Pages.

You could also use the graph api to read the comments, but that would only work one way (from the page to your website). Check out the API reference for more information about that: https://developers.facebook.com/docs/graph-api/reference/v2.7/comment/

Edit: Comment Mirroring is deprecated now: https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/



来源:https://stackoverflow.com/questions/38737867/embed-full-comments-from-facebook-post

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!