Search code examples
facebookfacebook-graph-apifacebook-fql

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}

Solution

  • 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?