代码之家  ›  专栏  ›  技术社区  ›  diggersworld

Facebook Graph API-好友使用应用程序

  •  6
  • diggersworld  · 技术社区  · 16 年前

    有没有一个函数脸谱网.php用于获取使用特定应用程序的用户的朋友的库。比如:

    $friends = $facebook->api('me/friends?access_token=' . $access_token);
    

    但是它没有列出所有的朋友,而是列出了使用同一个应用程序的朋友。

    2 回复  |  直到 16 年前
        1
  •  17
  •   serg    16 年前

    select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1
    
        2
  •  2
  •   Andrey Nikishaev    14 年前

    您始终可以使用应用程序令牌向url发出请求:

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

    然后按用户筛选 参数