如何获取Facebook个人资料大图片? [英] How to get facebook profile large square picture ?
问题描述
例如 https://graph.facebook.com/oleg.dats/picture 它是正方形,但是小到
要获得更大的图片 https://graph.facebook。 com / oleg.dats / picture?type = large 但是这个不是正方形。
有没有办法获得方形资料图片(200像素/ 200像素)?
您将需要自行发布。尺寸是
- square(50x50)
- 小(宽50像素,变高) / li>
- 正常(100像素宽,可变高度)和
- 大(约200像素宽,可变高度)
宣布截至2012年8月22日星期三
您可以通过Graph API查询替代大小 width
和 height
,例如
https://graph.facebook.com/1207059/picture?width=121&height=100
所以在你的情况下
https://graph.facebook.com/oleg.dats/picture? width = 200& height = 200
或在FQL中
SELECT url,real_width,real_height FROM profile_pic WHERE id = 100000896260238 AND width = 200 AND height = 200
[Source - http://developers.facebook.com/blog/post/2012/08/22/platform-updates--operation-developer-love/ ]
Facebook profile picture is public available.
For example https://graph.facebook.com/oleg.dats/picture It's square but to small
To get larger picture https://graph.facebook.com/oleg.dats/picture?type=large But this one is not square.
Is there way to get square profile picture (200px/200px) ?
You will need to post process it yourself. The sizes are
- square (50x50)
- small (50 pixels wide, variable height)
- normal (100 pixels wide, variable height), and
- large (about 200 pixels wide, variable height)
Announced as of Wednesday, August 22, 2012,
You can query for alternate sizes via Graph API using width
and height
, for example
https://graph.facebook.com/1207059/picture?width=121&height=100
So in your case
https://graph.facebook.com/oleg.dats/picture?width=200&height=200
Or in FQL
SELECT url, real_width, real_height FROM profile_pic WHERE id=100000896260238 AND width=200 AND height=200
[Source - http://developers.facebook.com/blog/post/2012/08/22/platform-updates--operation-developer-love/]
这篇关于如何获取Facebook个人资料大图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!