fql 选择不喜欢特定 Facebook 项目的朋友
select first_name, last_name, uid from user where uid in (select uid2 from friend where uid1=me() and uid2 **not** in(SELECT user_id FROM like WHERE object_id={0}))
但 facebook 不承认 not。你如何解决这个问题? 如果没有“not”,您将获得所有喜欢某事物的朋友的列表
select first_name, last_name, uid from user where uid in (select uid2 from friend where uid1=me() and uid2 **not** in(SELECT user_id FROM like WHERE object_id={0}))
But the not is not recognised by facebook. How do you solve this issue?
without the not, you will get the list of all friends who like something
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要认为有直接的方法可以做到这一点。您可能需要进行批量查询,获取所有喜欢某个特定对象的朋友的 uid,并将它们与朋友 id 列表进行比较并消除匹配项。
Don't think there is a direct way to do this. You might need to do batch queries, one to get the uids of all your friends who have liked a particular object, and compare them against the list of friend-ids and eliminate the matches.