Facebook个人头像是公开的。 例如https://graph.facebook.com/oleg.dats/picture,这是一个正方形但太小了。为了获得更大的图片,您可以访问https://graph.facebook.com/oleg.dats/picture?type=large,但这个头像不是正方形的。那有没有办法获取200px / 200px的正方形头像呢?
Facebook个人头像是公开的。 例如https://graph.facebook.com/oleg.dats/picture,这是一个正方形但太小了。为了获得更大的图片,您可以访问https://graph.facebook.com/oleg.dats/picture?type=large,但这个头像不是正方形的。那有没有办法获取200px / 200px的正方形头像呢?
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
[来源-http://developers.facebook.com/blog/post/2012/08/22/platform-updates--operation-developer-love/]
https://graph.facebook.com/digitizor/picture?width=700&height=200
这显示了facebook.com/digitizor的个人资料图片,尺寸为700px x 200px。