【发布时间】:2012-11-25 06:44:52
【问题描述】:
我正在尝试使用 Graph API 从我在 facebook 上的相册中提取图像,并且我能够这样做。
使用调用 - graph.facebook.com/albumID/photos
上面的调用响应了我需要的所有数据,它响应了各种大小的所有图像的 URL:
{
"picture": "URL Here",
"source": "URL Here",
"height": 540,
"width": 720,
"images": [
{
"height": 972,
"width": 1296,
"source": "URL Here"
},
{
"height": 720,
"width": 960,
"source": "URL Here"
},
{
"height": 540,
"width": 720,
"source": "URL Here"
},
{
"height": 450,
"width": 600,
"source": "URL Here"
},
{
"height": 360,
"width": 480,
"source": "URL Here"
},
{
"height": 240,
"width": 320,
"source": "URL Here"
},
{
"height": 135,
"width": 180,
"source": "URL Here"
},
{
"height": 97,
"width": 130,
"source": "URL Here"
},
{
"height": 97,
"width": 130,
"source": "URL Here"
}
],
有没有一种方法可以让我获得我相册中的图片,我想要的大小?例如:150x120 或 190x210 等。
谢谢, 雷诺·琼斯
【问题讨论】:
标签: facebook facebook-graph-api