我正在使用 iOS 和图形 API,我制作了一个表格单元格以在来自 Facebook 的不同专辑之间进行选择。我希望用户选择一张照片,并通过他的 ID 获取 400x400 的照片 url 就像我通过
https://graph.facebook.com/id.facebook/picture?width=300&height=300
这是请求:
IDFACEBOOK?fields=id,albums.fields(photos.fields(id))
结果如下:
{
"id": "100004371731895",
"albums": {
"data": [
{
"id": "159236757565381",
"created_time": "2013-02-28T13:51:13+0000",
"photos": {
"data": [
{
"id": "159236790898711",
"created_time": "2013-02-28T13:51:16+0000"
},
{
"id": "159236810898709",
"created_time": "2013-02-28T13:51:18+0000"
},
{
"id": "159236820898708",
"created_time": "2013-02-28T13:51:19+0000"
}
]
}
},
{
"id": "153859634769760",
"created_time": "2013-02-10T19:27:31+0000",
"photos": {
"data": [
{
"id": "157894851032905",
"created_time": "2013-02-23T16:20:18+0000"
},
{
"id": "153859638103093",
"created_time": "2013-02-10T19:27:31+0000"
}
]
}
}
]
}
}
任何人都知道如何进行?提前致谢。再见 !