简体   繁体   中英

android:Get photo from facebook post using graph api

I'm using Graph API in my android app to get posts of a facebook page.The result is JSONObject.

Posts are of 3 types - status, link, photo

For a post of type photo contains a picture which is available in the page album.

  1. I'm loading this image from the picture field(typically a web URL) in the response json object. However the image is of poor quality.

  2. To get the original picture, I should get it from the album/photos of the page.

Problem : The problem in the second case is, How do I get the id for that picture from the post? to query it from the album.

The id is in the field object_id in the json.

You have to make an additional call with this ID then.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM