获取全尺寸的个人资料图片 [英] Getting full-size profile picture
本文介绍了获取全尺寸的个人资料图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://graph.facebook.com/ {ID} /图片?type = large是小的方式。
谢谢:)
解决方案
我想我使用最简单的方法来获取完整的个人资料图片。您可以获得完整的个人资料图片,或者您可以自己设置个人资料图片维度:
$ facebook- &api(me?fields = picture.width(800).height(800))
你可以根据您的需要设置 width
和 height
。虽然Facebook没有返回所需的确切大小,但它返回了与他们最接近的尺寸图。
Is there anyway to get the full-size profile picture using any facebook api?
http://graph.facebook.com/{ID}/picture?type=large is way to small.
Thanks :)
解决方案
I think I use the simplest method to get the full profile picture. You can get full profile picture or you can set the profile picture dimension yourself:
$facebook->api(me?fields=picture.width(800).height(800))
You can set width
and height
as per your need. Though Facebook doesn't return the exact size asked for, It returns the closest dimension picture available with them.
这篇关于获取全尺寸的个人资料图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文