0
我試圖在用戶張貼在牆上時獲取原始圖像的URL。然而使用FQL查詢獲取Facebook牆貼(流)照片URL使用FQL查詢
SELECT attachment, actor_id, type, place, message, description FROM stream WHERE source_id = me()
在附件是在照片信息奠定了,我嘗試上傳不同的照片不同尺寸和參數並不總是相同的:那麼,我這樣做是爲了獲取在牆上的帖子。
"attachment": {
"media": [
{
"href": "https://www.facebook.com/photo.php?fbid=&set=a.xxxxxxxxxxxxxxx&type=1&relevant_count=1",
"alt": "novo post de imagem",
"type": "photo",
"src": "https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-prn2/1461152_604407632928327_57092530_s.jpg",
"photo": {
"aid": "************_1715",
"pid": "************_1073741835",
"fbid": 604407632928327,
"owner": ************,
"index": 1,
"width": 1024,
"height": 768,
"images": [
{
"src": "https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-prn2/1461152_604407632928327_57092530_s.jpg",
"width": 130,
"height": 97
},
{
"src": "https://scontent-b.xx.fbcdn.net/hphotos-prn2/s720x720/1461152_604407632928327_57092530_n.jpg",
"width": 720,
"height": 540
}
]
}
}
],
"name": "",
"caption": "",
"description": "",
"properties": [
],
"icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/StEh3RhPvjk.gif",
"fb_object_type": "photo",
"fb_object_id": "************_1073741835"
},
"actor_id": ************,
"type": 247,
"place": null,
"message": "novo post de imagem",
"description": null
}
因爲我不能總是得到與此數據的原始照片網址,我想不過從photo
或photo_src
表獲取照片的,每個代碼我在這個JSON不起作用檢索任何圖像以及aid
和pid
必須作爲字符串傳遞,因爲下劃線。
我的問題是:我可以使用什麼樣的代碼在這裏得到從另一個表(可能photo
或photo_src
),什麼是正確的查詢做的照片?