instafeed.js: limit:60 not working

Hey!

So regardless of what number I put over 33, it always returns only 33 images. The user account has 143 images currently. I’ve added the JS part of it hiding the ID and token.

var userFeed = new Instafeed({
    get: 'user',
    userId: ID,
    accessToken: 'token',
    resolution: 'low_resolution',
    limit: 60,
    sortBy: 'most-recent',
    template: '<div><img src="{{image}}" /><span class="caption">{{caption}}</span><span class="likes">{{likes}}<i class="icon-heart"></i></span></div>'
});
userFeed.run();

Thanks for the help!

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 36 (7 by maintainers)

Most upvoted comments

you can’t, as far as i know. instagram requires you submit as an app to display more than 20, and they’re not approving your usage type. not unless by displaying your posts you gave created a new user experience which is greater than just your website (aka an app or branding experience).

if it’s just to display posts solely on your website, all you get is 20. period.

I’d like to claim it was a eureka moment of pure inspiration, but alas I was rooting around stack overflow to find the answer to another issue and came across this suggestion of trying “&count=-1” so I thought I’d gave it a whirl for this (nothing to lose) and bingo.

@jdcauley Is there any noticeable pattern in the timestamps of those images? Or is that behavior consistent across different tags?

(Also, thanks so much for looking into it. It really is a huge help to me. I struggle just to keep up with the amount of support requests I get via email and github, so you are awesome and deserve a 🍔 )