我试图使用React Native Facebook SDK获取高分辨率图片,但默认图像质量非常差。它是50x50和非常低的分辨率。如何使用React Native Facebook SDK GraphRequest获取高质量的个人资料照片?
请求:
new GraphRequest('/135121013672357',
{
parameters: {
fields: {
string: 'picture'
}
}
},
_responseInfoCallback
)
响应
{
"picture": {
"data": {
"is_silhouette": false,
"url": "https://scontent.xx.fbcdn.net/v/t1.0-1/p50x50/16864988_145199975997794_4154735936748679550_n.jpg?oh=bb5f32ecb73dd9b8fb8ac45920e2ffc5&oe=593223A8"
}
},
"id": "135121013672357"
}
在Facebook's Graph API docs寻找,有一个参数, “类型”,其中一个可以请求特定大小(小,中,大)。然而不清楚的是如何格式化该请求。
picture?type=large // Error
picture{type:large} // 200 However, picture is omitted from Response
短语“.type”和“large”并未显示在该文档中 – AlxVallejo