dondonhk
dondonhk

Reputation: 631

Facebook graph api page feed images

I am able to fetch my page feeds by graph api. But the only problem is the pictures
The feeds contain more than 1 pictures however the graph api only return 1 picture for me. How can I fetch all the pictures for the feeds?

thanks

ps. i fetch the feeds by this api:
https://graph.facebook.com/[page_id]/feed?access_token=[access_token]

Upvotes: 2

Views: 11433

Answers (3)

dondonhk
dondonhk

Reputation: 631

Finally I get all the photos of a post by this graph api:

https://graph.facebook.com/v2.2/#{fb_post_id}?fields=attachments&access_token=#{access_token}

Upvotes: 12

vlasentiy
vlasentiy

Reputation: 339

Try this: {PAGE-ID}/feed?fields=attachments{url,subattachments}

Upvotes: 5

Johnny Sayasane
Johnny Sayasane

Reputation: 15

You need to get attachments by doing this

https://graph.facebook.com/v.2.2/[page_id]/posts?attachments&access_token=[AppID]|[AppSecret]

All the images is in the attachments

Upvotes: -1

Related Questions