使用 FQL 查找所有要搜索的标签都在照片中的照片的最佳方法是什么?
如果我想使用 FQL 搜索照片中包含 2 个人的照片,我可以使用以下代码来执行此操作 -
$fql_query_url = 'https://graph.facebook.com/' . '/fql?q=SELECT+src_big+FROM+photo+WHERE+pid+IN(SELECT+pid+FROM+photo_tag+WHERE+subject+IN('.$tag_list.'))' . '&access_token=' . $params['access_token'];
其中 $tag_list 变量是逗号分隔的用户 ID 列表。
这将返回在照片中标记了这些用户的照片。
但是,如果我想查找照片中两个人都出现(被标记)的照片该怎么办?有没有好的方法可以做到这一点?如果我想找到照片中一大群人怎么办?最好只是迭代结果并在结果返回后检查所有用户是否都在照片中?
还有其他人解决过这个问题吗? 非常感谢
If I want to use FQL to search for photos where 2 people are in the photos I can do this using the following code -
$fql_query_url = 'https://graph.facebook.com/' . '/fql?q=SELECT+src_big+FROM+photo+WHERE+pid+IN(SELECT+pid+FROM+photo_tag+WHERE+subject+IN('.$tag_list.'))' . '&access_token=' . $params['access_token'];
Where the $tag_list variable is a comma separated list of user ids.
This returns the photos where either of those users are tagged in the photo.
However what if I want to find photos where BOTH of the people appear (are tagged) in the photos. Is there a good way to do this? What if I want to find a large group of people in the photos. Is it best just to iterate over the results and check that all users are in the photos once the result is returned?
anyone else tackled this?
many thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)