Search code examples
instagram-api

Getting media likes returning likes sorted by user ID not by recency


We have an application that reads media likes to perform an action if specific users like a post. A few days ago, our team noticed that the likes being returned by Instagram are sorted by the user ID that liked the post, not by recency. Instagram's website doesn't specify a sort order, and this answer claims their sorted in descending order based on timestamp.

My question is, is this an Instagram bug, or intended behavior for the Instagram API?


Solution

  • I managed to somehow get in touch with Instagram's developer support, and they confirmed that sorting by user ID is the intended behavior, and that they currently have no plans to change the sorting in the future.