简体   繁体   English

Facebook graph api - 如何获取标记照片的数量

[英]Facebook graph api - How to get the count of tagged photos

I am trying to get the count of tagged photos for a user. 我正在尝试为用户获取标记照片的数量。

When getting the user albums using "me/albums" there is a 'count' field for every album containing the photos count in each album. 当使用“我/专辑”获取用户专辑时,每个专辑中都有一个“计数”字段,其中包含每个专辑中的照片数。 When using "me/photos" to get all tagged photos, there is no 'count' field. 使用“我/照片”获取所有标记的照片时,没有“计数”字段。

Is there any other query that can supply this kind of data? 有没有其他查询可以提供这种数据? Went over the graph api documentation and found nothing. 走过图api文档,一无所获。

我不认为标记照片有计数字段,并且FQL中没有COUNT运算符,因此最有效的方法是最小化返回数据包并自己计算:

fql?q=SELECT '' FROM photo_tag WHERE subject=me()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM