RED.Skull
RED.Skull

Reputation: 1736

Sorting facebook album photos using graph Api

I am trying to get last 7 updated images from album folder. I used reverse_chronological as well as chronological but its not working. Based on time update i have to sort the images.

https://graph.facebook.com/{albumid}/photos?&field=id,created_time.order(reverse_chronological),description&limit=7&access_token={zxczczxczx}

Upvotes: 2

Views: 1560

Answers (1)

Roemer
Roemer

Reputation: 3576

Looking at the documentation around ordering, this format should work:

https://graph.facebook.com/{album-id}/?fields=photos.order(reverse_chronological)

Can you try that?

Upvotes: 2

Related Questions