// How to get an access token: // http://jelled.com/instagram/access-token // TODO: // - improve UI // - make it easy to copy and paste image url // {{model.user.username}}, {{likes}} likes var galleryFeed = new Instafeed({ get: "user", userId: 2303807874, accessToken: "2303807874.69a503a.7451e3aef402458fb62d77c858ca21a3", resolution: "standard_resolution", useHttp: "true", limit: 12, template: '
', target: "instafeed-gallery-feed", after: function() { // disable button if no more results to load if (!this.hasNext()) { btnInstafeedLoad.setAttribute('disabled', 'disabled'); } }, }); galleryFeed.run(); var btnInstafeedLoad = document.getElementById("btn-instafeed-load"); btnInstafeedLoad.addEventListener("click", function() { galleryFeed.next() }); $(window).load(function() { var InstafeedRow = new Instafeed({ target: 'instafeed-row', get: 'user', userId: '2303807874', accessToken: '2303807874.69a503a.7451e3aef402458fb62d77c858ca21a3', resolution: 'standard_resolution', limit: '24', template: '
  • Instagram Image
  • ' }); var InstafeedGrid = new Instafeed({ target: 'instafeed-grid', get: 'user', userId: '2303807874', accessToken: '2303807874.69a503a.7451e3aef402458fb62d77c858ca21a3', resolution: 'standard_resolution', limit: '9', template: '
  • Instagram Image
  • ' }); InstafeedRow.run(); InstafeedGrid.run(); });