Facebook graph api 如何在Facebook Graph Api请求中设置个人资料图片的特定维度?
我试图将参数设置为Facebook graph api 如何在Facebook Graph Api请求中设置个人资料图片的特定维度?,facebook-graph-api,backend,Facebook Graph Api,Backend,我试图将参数设置为picture.width(360).height(360) 但它返回的维度480x480不正确 { "profile":{ "picture":{ "data":{ "width":480, "height":480, "url":"https://scontent.fmnl3-1.fna.fbcdn.net/v/t1.30497-1/c141.0.480.480a/
picture.width(360).height(360)
但它返回的维度480x480不正确
{
"profile":{
"picture":{
"data":{
"width":480,
"height":480,
"url":"https://scontent.fmnl3-1.fna.fbcdn.net/v/t1.30497-1/c141.0.480.480a/p480x480/84628273_176159830277856_972693363922829312_n.jpg?_nc_cat=1&_nc_sid=12b3be&_nc_eui2=AeF95aCnm2ggUPNPmTv9zCouik--Qfnh2B6KT75B-eHYHvMDChmr6ZbCJUK-KjNtt6PEAlHLBWx9GsGneBpfz-Jm&_nc_ohc=VQqsNSqP_MgAX_0Hjw6&_nc_ht=scontent.fmnl3-1.fna&oh=f11455cd5e09ac5466f5b7590d489e7e&oe=5EDF5715",
"is_silhouette":true
}
},
"id":"102794254765525",
"name":"Elizabeth Aleajdheafejh Fallerwitz",
"email":"swgqsfetew_1588681446@tfbnw.net"
}
}
任何帮助都将不胜感激您可以使用此功能
const user = {
"name": getUser.name,
"firstName":getUser.first_name,
"lastName": getUser.last_name,
// "profileImage": getUser.picture.data.url,
profileImage:`http://graph.facebook.com/${getUser.id}/picturetype=large&redirect=true&width=500&height=500`,
"token": data.accessToken,
}
如果有任何问题,你可以问
const user = {
"name": getUser.name,
"firstName":getUser.first_name,
"lastName": getUser.last_name,
// "profileImage": getUser.picture.data.url,
profileImage:`http://graph.facebook.com/${getUser.id}/picturetype=large&redirect=true&width=500&height=500`,
"token": data.accessToken,
}