Facebook图表api - 如何获取已标记照片的数量 [英] Facebook graph api - How to get the count of tagged photos

查看:104
本文介绍了Facebook图表api - 如何获取已标记照片的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取用户的标记照片数量。

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.

有没有其他可以提供这种数据的查询?
在图形api文档中,没有发现任何东西。

Is there any other query that can supply this kind of data? Went over the graph api documentation and found nothing.

推荐答案

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

I don't think there's a count field for tagged photos, and there is no COUNT operator in FQL, so the most efficient way is to minimize the return packet and count them yourself:

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

这篇关于Facebook图表api - 如何获取已标记照片的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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