Search code examples
facebookfacebook-fqlfriend

Facebook FQL how to know uid1 and uid2 are friend


I tried this query

SELECT uid1,uid2 
from friend 
where uid1= 437574483052913 
  AND uid2 = 314664215408124

I got an empty return . When I search their name in their friends list , I see they are friend.

Facebook depredated all the find friend ways .

Could I know they are friend ?


Solution

  • This is a lot easier with the Graph API:

    /me/friends/{user-id}
    

    Of course both users have to authorize the App with the user_friends permission.