I can not show my instagram feed

1

Good afternoon friends, I do not understand why my page does not show my instagram feed, can anyone help me?

This is the error presented: Instagram: The access_token provided is invalid.

JS code

$(function() {

    //Set up instafeed
    var feed = new Instafeed({
        clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxx',
        target: 'instafeed',
        get: 'tagged',
        tagName: 'photographyportfolio',
        links: true,
        limit: 8,
        sortBy: 'most-recent',
        resolution: 'standard_resolution',
        template: '<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"><div class="photo-box"><div class="image-wrap"><a href="{{link}}"><img src="{{image}}"></a><div class="likes">{{likes}} Likes</div></div><div class="description">{{caption}}<div class="date">{{model.date}}</div></div></div></div>'
    });
    feed.run();

});

HTML code

<div class="instagram-content">
    <h3>Latest Photos</h3>
    <div class="row photos-wrap">
    <!-- Instafeed target div -->
    <div id="instafeed"></div>
    <!-- The following HTML will be our template inside instafeed -->
    <!-- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
        <div class="photo-box">
            <div class="image-wrap">
                <img src="images/test_img.jpg">
                <div class="likes">309 Likes</div>
            </div>
            <div class="description">
                Fantastic Architecture #architecture #testing
                <div class="date">September 16, 2014</div>
            </div>
        </div>
    </div> -->

    </div>
</div>
    
asked by anonymous 05.08.2016 / 22:11

1 answer

0

I have solved only one part, because I do not want to show by #hashtag and yes by user:

$(function() {

//Set up instafeed
  var userFeed = new Instafeed({
  get: 'tagged',
  target: 'instafeed',
  clientId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
  accessToken: 'XxxXXxxXXXXXXXXXXXXXXXXXXXXXXXxxxxxxxxxxx',
  tagName: 'maceio',
  links: true,
  limit: 8,
  sortBy: 'most-recent',
  resolution: 'standard_resolution',
  template: '<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"><div class="photo-box"><div class="image-wrap"><a href="{{link}}"><img src="{{image}}"></a><div class="likes">{{likes}} Likes</div></div><div class="description">{{caption}}<div class="date">{{model.date}}</div></div></div></div>'
});
userFeed.run();
});
    
06.08.2016 / 18:44