Facebook 个人资料图片是公开的。
例如https://graph.facebook.com/oleg.dats/picture它是方形的,但很小
获取大图https://graph.facebook.com/oleg.dats/picture?type=large但是这个不是正方形的。
有没有办法获得方形个人资料图片(200px/200px)?
最佳答案
您需要自己进行后期处理。尺寸是
- 正方形 (50x50)
- 小(50 像素宽,可变高度)
- 正常(100 像素宽,可变高度),和
- 大(大约 200 像素宽,可变高度)
2012 年 8 月 22 日星期三公布
例如,您可以使用 width
和 height
通过 Graph API 查询其他尺寸
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/ ]
关于facebook - 如何获取 facebook 个人资料大方形图片?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11743768/