使用PHP获取FB喜欢,分享和评论一个URL - 没有限制 [英] Get FB likes, shares and comments for a URL using PHP - with no limit

查看:133
本文介绍了使用PHP获取FB喜欢,分享和评论一个URL - 没有限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用PHP简单地获取网址中的喜欢,分享和评论?

How can I simple get count of likes, shares and comments from a URL using PHP?

使用FQL或graph.facebook.com的方法不再工作。

The method using FQL or graph.facebook.com didnt work anymore.

我每天还需要约1000个请求,我需要解决方案,请求限制超过1000个。

I need also about 1000 requests per day, I need solution with request limit more then 1000.

推荐答案

我认为FQL在八月初被骗了。我已经使用graph API解决了这个问题,并说明了这些字段参数

I think that FQL became deceprated by the beginning of August. I've solved this problem using graph API and stating the fields argument

fields = likes.limit(0).summary(true),comments.limit(0)。总结(true)

fields=likes.limit(0).summary(true),comments.limit(0).summary(true)

字段喜欢评论会给你一个喜欢或评论的人的列表它, .limit(0)意味着您不需要任何确切的名称, .summary(true)可以给您更详细的信息 - 喜欢/评论。

the fields likes and comments would give you a list of people who liked or commented on it, the .limit(0) means that you don't need any exact names mentioned and .summary(true) gives you more detailed info on it - the number of likes/comments.

我希望这个解释有所帮助,你可以在这里找到更多的信息 https://developers.facebook.com/tools/explorer

I hope this explanation helps, you can find more info here https://developers.facebook.com/tools/explorer

这篇关于使用PHP获取FB喜欢,分享和评论一个URL - 没有限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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