si dovrebbe usare il Facebook Graph API per questo, è molto più robusto, versatile, e meglio m aintained.
- Inizia dall'endpoint
/PAGE_ID/feed
, quindi nell'esempio /170589069647190/feed
. (Gioca nel explorer per testarlo) Bene, ora hai lo stesso elenco di post di quel feed RSS. Nota che ogni post con una foto ha un campo object_id
.
- Per ogni
object_id
, andare all'endpoint /OBJECT_ID?fields=images,height,width,source
. Se ne stai eseguendo più di uno, è meglio impostare l'efficienza
Questi 2 semplici passaggi ti forniranno questi dati per ogni aggiornamento dello stato delle foto. L'esterno height
, width
e source
sono le dimensioni originali di caricamento e l'origine. Ma l'array images
ti offre un sacco di immagini ridimensionate. Scegli quello più adatto alle tue esigenze.
{
"images": [
{
"height": 2048,
"width": 1365,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s2048x2048/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 960,
"width": 640,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 720,
"width": 480,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s720x720/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 600,
"width": 400,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s600x600/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 480,
"width": 320,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s480x480/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 320,
"width": 213,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s320x320/599910_508618522510908_1608434210_n.jpg"
},
{
"height": 270,
"width": 180,
"source": "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-snc7/599910_508618522510908_1608434210_a.jpg"
},
{
"height": 130,
"width": 86,
"source": "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-snc7/599910_508618522510908_1608434210_s.jpg"
},
{
"height": 130,
"width": 86,
"source": "https://fbcdn-photos-a.akamaihd.net/hphotos-ak-snc7/s75x225/599910_508618522510908_1608434210_s.jpg"
}
],
"height": 720,
"width": 480,
"source": "https://sphotos-b.xx.fbcdn.net/hphotos-snc7/s720x720/599910_508618522510908_1608434210_n.jpg",
"id": "508618522510908",
"created_time": "2013-03-04T11:05:09+0000"
}
NOTA: Per fare questo al volo, avrete bisogno di un App Access Token.
c'è una seconda parte relativa a questa materia, http://stackoverflow.com/questions/15409210/howto-extract-events-from-facebook-page – Teson