How to get "mutual sympathy" using fql on facebook?

Hi I'm trying to get the ones that are shared between two friends, and I use 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 should get pages that the user and his friends like, however I get an empty array in the results. What is wrong with the request?

+3
source share
1 answer

For a long time for this overlay, but I use:

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 () +") ";

+1
source

Source: https://habr.com/ru/post/1783068/


All Articles