Facebook Graph API:在一个请求中获取较大的图片 [英] Facebook Graph API : get larger pictures in one request
问题描述
我目前正在使用 Graph API Explorer 进行一些测试。这是一个很好的工具。
I'm currently using the Graph API Explorer to make some tests. That's a good tool.
我想要获得用户的朋友列表,与朋友的姓名,ids和图片。所以我键入:
I want to get the user's friend list, with friends' names, ids and pictures. So I type :
https://graph.facebook.com/me/friends?fields=id,picture,name
但是图片只有50x50,我想要一个较大的一个请求。
But picture is only 50x50, and I would like a larger one in this request.
可以吗?
推荐答案
你不需要拉图片属性。有更方便的方法,你唯一需要的是userid,见下面的例子;
you do not need to pull 'picture' attribute though. there is much more convenient way, the only thing you need is userid, see example below;
https://graph.facebook.com/user_id / picture?type = large
ps类型定义你想要的大小
p.s. type defines the size you want
plz请记住,使用具有基本权限的令牌,/ me / friends将返回只有id + name属性的朋友列表
plz keep in mind that using token with basic permissions, /me/friends will return list of friends only with id+name attributes
这篇关于Facebook Graph API:在一个请求中获取较大的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!