嗨使用圖形API我能夠得到我的相冊的照片,現在我想下載到相冊中的所有照片到我的電腦。它以JSON格式返回數據,我怎麼纔可以過濾來自JSON的圖片的網址,然後從網址下載 所有照片我的JSON是一些類似這樣的格式使用JSON格式的圖表API下載Facebook照片?
{
"data": [
{
"id": "1140894483853",
"from": {
"name": "Muhammad Asghar",
"id": "1272156814"
},
"tags": {
"data": [
{
"id": "1272156814",
"name": "Muhammad Asghar",
"x": 52.6,
"y": 29.538,
"created_time": "2009-08-20T07:46:50+0000"
}
]
},
"picture": "http://photos-d.ak.fbcdn.net/photos-ak-snc1/v3356/171/103/1272156814/s1272156814_30392128_5890712.jpg",
"source": "http://a4.sphotos.ak.fbcdn.net/photos-ak-snc1/v3356/171/103/1272156814/n1272156814_30392128_5890712.jpg",
"height": 604,
"width": 498,
"images": [
{
"height": 604,
"width": 498,
"source": "http://a4.sphotos.ak.fbcdn.net/photos-ak-snc1/v3356/171/103/1272156814/n1272156814_30392128_5890712.jpg"
},
請任何人的幫助。
試試json_decode? http://php.net/manual/en/function.json-decode.php – AllisonC 2011-06-08 14:20:40