Android facebook api,获取不同尺寸的头像

Android facebook api, get diffrent size profile picture

我正在使用相对较新的 Facebook 图 api。 我正在获取使用该应用程序的好友列表及其个人资料照片。

我不确定如何修改我发送的参数以使返回的图片变大。目前默认返回的是小号。

我正在使用 newMyFriendsRequest。

我发送的参数看起来像这样...

Bundle parameters = new Bundle();
parameters.putString("fields", "picture,name");

request.setParameters(parameters);
request.executeAsync();

不确定如何向该请求添加参数,所以返回给我的图片很大。

有人能帮忙吗?

请求 /user-id/picture?type=large 为您提供更大版本的个人资料照片。

您可以像这样在请求中使用 type

parameters.putString("fields", "picture.type(large),name");