我尝试使用Graph API:
https://developers.facebook.com/tools/explorer?method=GET&path=BillGates%2Fposts
但它返回(在标记picture
下)一张小尺寸照片。如何以更大的尺寸获取该照片的链接?我可以吗?
答案 0 :(得分:1)
根据https://developers.facebook.com/docs/reference/api/post/,我认为你没有想要直接获得更大照片尺寸的帖子。
但你可以从帖子的'object_id'获取Photo对象本身,类型为'photo',然后从那里获取所有图片大小:https://developers.facebook.com/tools/explorer?method=GET&path=10151450339221961
然后它应该具有照片的所有可用图像尺寸的图像属性:
"images": [
{
"height": 393,
"width": 700,
"source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/417933_10151450339221961_1121449374_n.jpg"
},
{
"height": 393,
"width": 700,
"source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/417933_10151450339221961_1121449374_n.jpg"
},
{
"height": 336,
"width": 600,
"source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/s600x600/417933_10151450339221961_1121449374_n.jpg"
},
{
"height": 269,
"width": 480,
"source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/s480x480/417933_10151450339221961_1121449374_n.jpg"
},
{
"height": 179,
"width": 320,
"source": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-ash4/s320x320/417933_10151450339221961_1121449374_n.jpg"
},
{
"height": 101,
"width": 180,
"source": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-ash4/417933_10151450339221961_1121449374_a.jpg"
},
{
"height": 72,
"width": 130,
"source": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-ash4/417933_10151450339221961_1121449374_s.jpg"
},
{
"height": 72,
"width": 130,
"source": "https://fbcdn-photos-h-a.akamaihd.net/hphotos-ak-ash4/s75x225/417933_10151450339221961_1121449374_s.jpg"
}