问题
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