问题
I'm using the relatively new Facebook graph api. I'm getting a list of friends and their profile pics that use the app.
I'm not sure how to modify the parameters that I'm sending so that the picture that is returned is large. The default one that's returned currently is to small.
I'm using the newMyFriendsRequest.
the parms I send it look like this...
Bundle parameters = new Bundle();
parameters.putString("fields", "picture,name");
request.setParameters(parameters);
request.executeAsync();
Not sure how to add a parm to that requests so the picture returned to me is large.
Can anyone help?
回答1:
Requesting /user-id/picture?type=large
gives you a larger version of the profile picture.
You can use type
in the request you are making like this,
parameters.putString("fields", "picture.type(large),name");
来源:https://stackoverflow.com/questions/33739867/android-facebook-api-get-diffrent-size-profile-picture