Facebook Graph API获取所有评论 [英] Facebook Graph API get all comments

查看:161
本文介绍了Facebook Graph API获取所有评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,所以我在我的网站上添加了一个Facebook社交插件评论框,其中我指定了一个Facebook粉丝专页作为评论的目标。

OK, so I've put a Facebook social plugin comments box on my site, in which i specified a Facebook Fanpage, as the comments target.

我想做的是获取我的页面上的评论框中存在的所有评论。我使用的是:

Now what I want to do is get all comments that are present in the comments box on page my page. I'm using this:

https ://graph.facebook.com/comments/?ids = xxx

代替xxx,我放了我的粉丝网址(从一天开始显示评论即使限制设置为10000),如果这不工作,我尝试了我的网页url,导致没有显示。

In place of xxx I placed my fanpage url (displayed comments just from one day even with limit set to 10000) and when this didn't work I tried my page url, which resulted in nothing being displayed.

我在这里亏损,任何帮助将不胜感激!

I'm at a loss here, any help would be appreciated!

推荐答案

从Facebook Graph API读取注释的正确语法如下:

The correct syntax to read comments from the Facebook Graph API is as follows:

GET / {object-id} / comments

所以你URL将如下所示:

So your URL would look like this:

https:// graph.facebook.com/xxx/comments

以下是一个实例,介绍可口可乐封面照片的评论:

Here's a live example that looks at comments on Coca-Cola's cover photo:

http://graph.facebook.com/10152297032458306/comments

您可以阅读更多关于通过Graph API阅读评论 here

You can read more about reading comments via the Graph API here.

这篇关于Facebook Graph API获取所有评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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