I am using instafeed.js to display Instagram images on my homepage.
I got 1000+ images I would like to sortby most-liked and load 60 at a time.
When I use "sortBy: most-liked" it looks like instafeed.js loads the 60 recent images and then sort these 60 by most-liked. When I load the next 60 images I get the next 60 recent images and these sorted by most liked.
It looks like it is not posible to sort all 1000+ images by most-liked. And then load 60 at a time?
Is this how instafeed.js works? Or is it a bug?
<script type="text/javascript">
var feed = new Instafeed({
sortBy: 'most-liked',
get: 'tagged',
tagName: 'awesome',
clientId: 'YOUR_CLIENT_ID'
});
feed.run();
</script>
Kind regards
As I know, currently instafeed supports to load max of 60 images. But there is a way to load more images and display them as you requested and it need little bit of code work.
for the first you need to follow the following steps;
If you want to add the pagination, you can find some info here here