如何获得“相互喜欢”在 facebook 中使用 fql 吗?
你好 我正在尝试获取两个朋友之间共享的喜欢,并且我正在使用此查询:
SELECT source_id, target_id FROM connection
WHERE source_id = me()
AND source_id IN
(SELECT uid2 FROM friend WHERE uid1 =me())
AND target_type = 'page'
它应该获取用户和他的朋友喜欢的页面,但是我在结果中得到一个空数组。查询出了什么问题?
Hi
I am trying to get the likes that are shared between two friends and I am using this query:
SELECT source_id, target_id FROM connection
WHERE source_id = me()
AND source_id IN
(SELECT uid2 FROM friend WHERE uid1 =me())
AND target_type = 'page'
which is supposed to get the pages that a user and his friends like, however I am getting an empty array in the results. What is wrong with the query?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个解决方案花了很长时间,但我正在使用:
SELECT object_id FROM like WHERE user_id=" + User.getCurrentUser().getFacebookId() + " AND object_id IN (SELECT object_id FROM like WHERE user_id=" + u.getFacebookId() + “)”;
Long time for this olution but i'm using:
SELECT object_id FROM like WHERE user_id=" + User.getCurrentUser().getFacebookId() + " AND object_id IN (SELECT object_id FROM like WHERE user_id=" + u.getFacebookId() +")";