Instafeed.js: Error from Instagram: invalid media id

Created on 27 Sep 2016  路  1Comment  路  Source: stevenschobert/instafeed.js

I try to use instafeed.js to display the 10 last instagram post from my account, on my magento website.

Here is my script :

<script type="text/javascript"> var feed = new Instafeed({ clientId: 'myclientid', accessToken: 'myaccesstoken', template: '<a href="{{link}}"><img src="{{image}}" /></a>', sortBy: 'most-recent', limit: '10', resolution: 'thumbnail' }); feed.run(); </script>

It returns me an error : Error from Instagram: invalid media id

Of course my instagram application is in sandbox mode, and from what I read on the instragram website, it will stay at this state for this kind of use. And I've unchecked the OAuth security.

I don't understand what I means by 'invalid media id'. Can you help me ?

Thanks

Most helpful comment

You need to tell Instafeed.js that you are wanting to get images from a user account:

var feed = new Instafeed({
  // other settings
  get: "user",
  userId: "YOUR_USER_ID"
});
feed.run();

>All comments

You need to tell Instafeed.js that you are wanting to get images from a user account:

var feed = new Instafeed({
  // other settings
  get: "user",
  userId: "YOUR_USER_ID"
});
feed.run();
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ac-barros picture ac-barros  路  7Comments

masiorama picture masiorama  路  5Comments

belham picture belham  路  3Comments

jpdpueyo picture jpdpueyo  路  6Comments

marshall993 picture marshall993  路  7Comments