How to display actual images of facebook photos using only id (graph API) -
i using facebook graph api photos.
fb.api( "/me/photos", function (response) { if (response && !response.error) { console.log(response); } else { console.log(response.error); alert(response.error); } } );
the information im getting each photo in data
object created_time
, id
, , name
im not sure how buid displayable images out of data.
i have tried this answer try use id actual photo url giving same information there.
does permissions have affect on data receive back? still in submission process this. assumed work anyway give permissions warning @ top of pop up.
you have explicitly specify fields want receive starting v2.4. example
/me/photos?fields=id,link,images
see
- https://developers.facebook.com/docs/apps/changelog/#v2_4
- https://developers.facebook.com/docs/graph-api/reference/photo#reading
declarative fields
try improve performance on mobile networks, nodes , edges in v2.4 requires explicitly request field(s) need requests. example, /v2.4/me/feed no longer includes likes , comments default, /v2.4/me/feed?fields=comments,likes return data. more details see docs on how request specific fields.
Comments
Post a Comment