Android的Facebook的API,让不同势大小的个人资料图片 [英] Android facebook api, get diffrent size profile picture

查看:137
本文介绍了Android的Facebook的API,让不同势大小的个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即时通讯使用了相对较新的Facebook图形API。 即时得到朋友和使用的应用程序,他们的个人资料图片列表。

Im using the relatively new Facebook graph api. Im getting a list of friends and their profile pics that use the app.

林不知道如何修改,我要送,以便返回的图片是大的参数。当前所返回的默认之一是小

Im 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.

使用newMyFriendsRequest IM。

im using the newMyFriendsRequest.

我把它看起来像这样的PARMS ...

the parms I send it look like this...

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

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

不知道如何添加一个PARM到请求所以画面回到我来说是大的。

Not sure how to add a parm to that requests so the picture returned to me is large.

谁能帮助?

谢谢 艾丹

推荐答案

请求 /用户ID /图片?类型=大给你的个人资料图片的放大版本。

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");

这篇关于Android的Facebook的API,让不同势大小的个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆