Quantcast
Channel: Active questions tagged instafeedjs+jquery+javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 32

How to get user based and tag based photos from instagram

$
0
0

I have a requirement where i have to show instagram photos from users account xxxx and photos tagged as x,x2,x3,x4.

Is it possible to do to both user account based and tagged based photos in with instafeed.js script

Codepen

Script

var instaFeed = new Instafeed({
                    get: 'user',
                    userId: 6678174,
                    accessToken: '6678174.467ede5.205a03ebc4b74d4082823781c3149575',
                    target: 'instafeed',
                    sortBy: 'most-recent',
                    limit: 32,
                    resolution: 'standard_resolution',
  template: '<a class="fancybox" href="{{image}}"><img src="{{image}}" /><div id="filter">{{model.filter}}</div><div class="info"><p class="location"><i class="icon-location"></i>{{location}}</p><p><i class="icon-comment"></i>{{caption}}</p><br><ul><li class="icon-heart">{{likes}} likes<li class="icon-chat">{{comments}} comments</ul></div></a>'
}).run();

$.fn.extend({
  matchHeight: function(data){
    var maxHeight = 0;
    $(this).each(function() {
       maxHeight = maxHeight > $(this).height() ? maxHeight : $(this).height();
    });
   $(this).height(maxHeight);
  }
});

Viewing all articles
Browse latest Browse all 32

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>