javascript - Instafeed Script Not Working -


i've been developing website requires instagram feed. unfortunately, can't work! here's i've done.

<script type="text/javascript">     feed = new instafeed({     clientid: '99808b1edfc140eda1cfa2dca4b4fe4c',     accesstoken: '201047212.467ede5.1072e8c882e34a8fb7975f725e7b3ba8',     get: 'user',     userid: 201047212,     resolution: 'standard_resolution',     links: 'false',     template: '<div id="instafeed-caption">{{caption}} <br>&hearts; {{likes}} on <a href="{{link}}" class="sky">instagram</a></div><div id="instafeed-container"><img src="{{image}}" /></div>',     mock: true,     custom: {     images: [],     currentimage: 0,     showimage: function () {     var result, image;     image = this.options.custom.images[this.options.custom.currentimage];     result = this._maketemplate(this.options.template, {     model: image,     id: image.id,     link: image.link,     image: image.images[this.options.resolution].url,     caption: this._getobjectproperty(image, 'caption.text'),     likes: image.likes.count,     comments: image.comments.count,     location: this._getobjectproperty(image, 'location.name')   });   (function($){      $("#instafeed").html(result)   }) }   },   success: function (data) {     this.options.custom.images = data.data;      this.options.custom.showimage.call(this);   } }); feed.run();  (function($){   $(".instafeed-next").click(function () {     var length, current;     current = feed.options.custom.currentimage;     length = feed.options.custom.images.length; if (current < length - 1) {   feed.options.custom.currentimage++;   feed.options.custom.showimage.call(feed); }   }) });  (function($){   $(".instafeed-prev").click(function () {     var length, current;     current = feed.options.custom.currentimage;     length = feed.options.custom.images.length;     if (current > 0) {       feed.options.custom.currentimage--       feed.options.custom.showimage.call(feed);     }   }) }); </script> 

i'd appreciate if tell me wrong script. pulled off example on instafeed website. reference, website www.hemeon.com. website www.vcluxe.nu/contact-me. thanks!

oh hey.. don't know code have... instafeed page not seem mention...is add "limit"...this tells instagram how many images drop in.. otherwise suppose default zero...

i made mine: limit: '4'

would pretty helpful piece of info put instructions!

see below:

 <script type="text/javascript">     var feed = new instafeed({         get: 'tagged',         tagname: 'cool',         clientid: '916c01b8624d43c7b4b76369aruc86a0',         limit: '4'      });     feed.run(); </script> 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -