Facebook Graph API - Friends using application

前端 未结 2 939
闹比i
闹比i 2020-12-05 09:13

Is there a function in the Facebook.php library for getting friends of the user using a certain application. Something like:

$friends = $facebook->api(\'m         


        
相关标签:
2条回答
  • 2020-12-05 09:27

    You should be able to do this with FQL:

    select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1
    
    0 讨论(0)
  • 2020-12-05 09:31

    You can always make request with App token to url:

    https://graph.facebook.com/user_id/friends?fields=id,name,installed
    

    And then just filter user by installed param For user friends you can do the same but with client token.

    0 讨论(0)
提交回复
热议问题