C
C
cyberlain2017-11-29 09:26:48
JavaScript
cyberlain, 2017-11-29 09:26:48

Is it possible to get all image urls from a specific page on instagram?

The reason is that the customer wants all the photos from his Instagram to automatically go to his website page, I understand how this can be done... =/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kiberlain, 2017-11-29
@cyberlain

found a good example

initInstagramFeed = (function(){
   		var igID = '10054954'; //lukeharby
      var igClientID = '37f944b55b27422d973fdea0e1c803cb';
      var igClientSecret = '1897b131caa24988b6d61ea30531353a';
      var count = 33; // weird max image?
      var accessToken = '10054954.1677ed0.c830fee08ea9418a8fa8a795d49364ac';
      $.ajax({
            type: "GET",
            dataType: "jsonp",
            cache: false,
            url: "https://api.instagram.com/v1/users/" + igID + "/media/recent/?access_token=" + accessToken + '&count=' + count,
      success: function(data) {
        for (var i = 0; i < count; i++) {
          $(".instagram-wrapper").append("<a target='_blank' href='" + data.data[i].link +"'><img src='" + data.data[i].images.thumbnail.url +"' /></a>");
        }
        console.log(data);
      },
      error: function(){
        console.log('Something went wrong', data);
      }
    });
    }());

https://jsfiddle.net/lharby/hfsgmnu0/

J
Justin Bieber, 2017-11-29
@JustinBieber

install insta widget

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question