[英]Get tags on user photos facebook graph api
Im trying to get the number of people a user is tagging in each of his photos. 我试图获取用户在每张照片中标记的人数。
For this I first tried to get all photos via 为此,我首先尝试通过
me?fields=albums{photos{id}}
and then on each of them get the tags with 然后在每个标签上使用
{photo-id}/tags
in a for loop. 在for循环中。
This works but is extremely slow due to all the connections that get established while running through the for loop. 这可以工作,但是由于在for循环中运行时已建立的所有连接而非常慢。
Is there a better way to do it or to somehow combine both things in one query? 有没有更好的方法可以做到这一点,或以某种方式将两者结合在一起?
I was thinking sth like 我在想……
me?fields=albums{photos{id{tags}}}
but unfortunately it does not work. 但不幸的是它不起作用。
The request 要求
GET /me?fields=albums{photos{id,tags}}
works for me... 为我工作...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.