如何在 v2.1 中获取带有个人资料图片和 url 的 Facebook 好友列表

How to Get Facebook Friends List with Profile Picture and urls in v2.1

我之前有一个应用程序提取了我的朋友列表和个人资料图片,但因为 Facebook 贬值 v1.0 API 所以它现在不起作用。

现在我想用 API v2.0 提取我的朋友列表,这是我用来执行此操作的命令

https://graph.facebook.com/me/friends?access_token=  [oauth_token]&fields=name,id,picture

问题是它只显示我朋友的总数,而不是像这样的名字和 ID

{
  "data": [
  ], 
 "summary": {
"total_count": 258
 }
}

在“调试”菜单中显示此消息!

Only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.

如果我做错了什么或者使用 API v2.0.

提取我朋友信息的命令应该是什么,有人可以告诉我吗?

谢谢!

正如您在评论中看到的那样,不可能再获得所有朋友 - 只有那些授权您的应用程序的人。你可以在这个线程的答案中详细阅读:Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app