本文介绍了每岗位喜欢Facebook的API总数获取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用下面的Facebook的API端点工作: /状态 /链接 /照片
对于每个返回的对象,我只得到喜欢注释对象该显示器TOP25结果,这导致分页接下来的25。

I'm working with the following Facebook API endpoints: /statuses, /links, /photosFor each returned object I'm only getting likes and comments objects which display top25 results, and a pagination that leads to the next 25.

我只是在若干喜欢的兴趣。有没有一种方式,通过不同的API调用它不需要多个分页调用拿到多少?

I'm only interested in the number of likes. Is there a way to get that number through a different API call which doesn't require multiple pagination calls?

推荐答案

您可以返回喜欢用FQL各种对象的总数。下面是如何获得喜欢的总数注释的文档:

You can return the total number of likes for various objects using FQL. Here's the documentation for how to get the total number of likes for a comment:

查询本身是这样的:

SELECT喜欢FROM WHERE注释= POST_ID XYX

这篇关于每岗位喜欢Facebook的API总数获取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 04:13