使用Android Facebook API获取Facebook好友照片的最佳方式

w.d*_*onk 0 android facebook-graph-api

获取用户朋友的所有个人资料图片的最佳方式是什么?我是否必须循环每个Facebook好友或者有更简单的方法吗?

bka*_*aid 8

在您的用户通过您的应用程序进行身份验证后,请调用/ friends端点https://graph.facebook.com/me/friends?access_token= ...解析朋友ID的结果,然后您有朋友的图像网址是这种格式:

https://graph.facebook.com/4/picture?type=small 在此输入图像描述

https://graph.facebook.com/4/picture?type=square https://graph.facebook.com/4/picture?type=square

https://graph.facebook.com/4/picture?type=normal https://graph.facebook.com/4/picture?type=normal

https://graph.facebook.com/4/picture?type=large https://graph.facebook.com/4/picture?type=large