page example facebook facebook-graph-api get facebook-timeline

example - paging facebook api



Obtener fotos de alta resoluciĆ³n de Facebook News Feed API (2)

Estoy tratando de obtener una foto de alta resolución de la publicación a continuación en mi fuente de noticias. Traté de llamar a https://graph.facebook.com/v2.1/10154603506630195 usando el object_id en base a los consejos aquí ( obtener fotos de alta resolución que se publicaron en una página / feed ) pero no parece funcionar, cualquier ayuda sería muy apreciada :)

{ "id": "10154603665915195_10154603509055195", "from": { "id": "10154603665915195", "name": "John Smith" }, "message": "I''ve taken up queuing as a new hobby during my short time in England. Here we are outside a store that won''t open for another half hour...", "picture": "https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/s130x130/10699259_10154603507605195_419931109_n.jpg?oh=ff3ec0e772fea164bbd9d61e9ee9a4d0&oe=540E80D2&__gda__=1410242521_d3b2dc1c8f971610b07e0408cd62815b", "link": "https://www.facebook.com/photo.php?fbid=10154603506630195&set=a.10150303996795195.555860.698310194&type=1&relevant_count=1", "icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yx/r/og8V99JVf8G.gif", "actions": [ { "name": "Comment", "link": "https://www.facebook.com/10154603665915195/posts/10154603509055195" }, { "name": "Like", "link": "https://www.facebook.com/10154603665915195/posts/10154603509055195" } ], "privacy": { "value": "" }, "type": "photo", "status_type": "added_photos", "object_id": "10154603506630195", "application": { "name": "Facebook for iPhone", "namespace": "fbiphone", "id": "6628568379" }, "created_time": "2014-09-07T10:40:03+0000", "updated_time": "2014-09-07T10:40:03+0000", "likes": { "data": [ { "id": "711243852300920", "name": "Megumi Yoshida Atobe" }, { "id": "10152707756462594", "name": "Emily Stokes-Rees" }, { "id": "10152741507272044", "name": "Lina Kumamaru Sato" } ], "paging": { "cursors": { "after": "MTAxNTI3NDE1MDcyNzIwNDQ=", "before": "NzExMjQzODUyMzAwOTIw" } } } }


Intente especificar el campo de attachments en su solicitud.

/v2.2/<someId>/feed?fields=attachments

Esto le dará un campo ''adjuntos'', con algunos medios dentro. Encontrarás imágenes de alta resolución.


Si está utilizando la API de FB Graph, solicite el campo full_picture en su solicitud:

FB.api(''10153224297552834_10153268631032834?fields=full_picture'', function (response) { console.log(response.full_picture); });