javascriptjqueryhtmlinstafeedjs

Instafeed.js does not load any picture


I am trying to load Instagram image by using instafeed.js. I got no pics with this code

<script>
    var feed = new Instafeed ({
    get: 'tagged',
    tagName: 'phillyisugly',
    clientId: 'CLIENT ID',
    userId: 'USER ID',
    accessToken: 'ACCESS TOKEN',
});
    feed.run();

</script>

But if I use this, I have all pics posted by my Instagram account:

var feed = new Instafeed ({
  get: 'user',
  userID:'USER_ID',
  clientId: 'CLIENT_ID',
  accessToken: 'ACCESS_TOKEN',
		
});
  feed.run();

Please spare your time and help me! Many thanks!


Solution

  • Try this piece of code.

     var feed = new Instafeed({
      get: 'tagged',
      tagName: 'SomeTag',
      clientId: 'client_id',
      accessToken: 'access_token',
      template: '<li><div><a href="{{link}}"><img src="{{image}}" /></a><h3>{{caption}}</h3></div></li>'
    });
        feed.run();