如何使用Javascript从Facebook API获取大尺寸的个人资料图片

3

我有以下代码:

FB.api('/me', 
{fields: 'id, first_name, last_name, email, link, gender, picture'}, 
function(response) {

Pass data to php file which saves it in the database

}

图片字段包含一个50x50像素的图像url。如何获取到更大的图片url?

我已经查看了这里的文档:https://developers.facebook.com/docs/graph-api/reference/user/picture/,但我仍然感到困惑。

1个回答

4
也许这可以帮助到您。
$facebook->api(me?fields=picture.width(800).height(800))

6
谢谢!我已经解决了,答案是 picture.type(large) :) - Polina
谢谢,我也会尝试它。 - Jean-Marc Amon

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接