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

查看:39
本文介绍了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,我放置了我的fanpage url(即使限制设置为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

所以你的网址应该是这样的:

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

您可以在 此处.

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

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