[英]Facebook Graph API - Get photos by User Tag
I'm trying to use Facebook's Graph API v2.3 field expansion to get the photo's of a specific friend from their albums. 我正在尝试使用Facebook的Graph API v2.3字段扩展来从他们的相册中获取特定朋友的照片。
I only want a list of all UserA's photos from UserA's albums which have UserB tagged in. 我只想要列出其中标记了UserB的UserA相册中所有UserA的照片的列表。
The following returns all of UserA's albums, photos and tags: 以下内容返回UserA的所有相册,照片和标签:
me?fields=albums.limit(25){name,photos.limit(25){name,picture,tags.limit(25)}}
But I don't know how to apply a where clause / filter the query to only return those where the tags.id = UserB.id. 但是我不知道如何应用where子句/过滤查询以仅返回那些tags.id = UserB.id。
I can't find anything in the docs , so I suspect I'm approaching it wrong. 我在docs中找不到任何内容,所以我怀疑我的做法是错误的。 Is there an available solution or an alternative route which uses a minimal number of API requests?
是否有可用的解决方案或使用最少API请求数量的替代路由?
Any help would be greatly appreciated. 任何帮助将不胜感激。 Thanks.
谢谢。
There's currently no way to do additional filterning. 当前无法进行其他过滤。 You'll have a problem anyway, because you could only access those friends which are also using the same app (and by that, only to a very limited set of information).
无论如何,您都会遇到问题,因为您只能访问那些也使用同一应用程序的朋友(因此,只能获得非常有限的一组信息)。
The friends_*
permissions have been removed with the introduction of Graph API v2.0. Graph API v2.0的引入已删除了
friends_*
权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.