Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Displaying more than 20 photos in instagram API

I've been doing some research and trying to figure out how to display more then 20 images that are being pulld in from the instagram api. I'm pretty new at this so any help would be appreciated! Just trying to see if there are any work arounds? Saw something about adding pagination that could possibly help.. if thats the case details on how to do that would be great too!

Here's the code I have so far.

<script type="text/javascript">
    $.ajax({
        type: "GET",
        dataType: "jsonp",
        cache: false,
        url: "https://api.instagram.com/v1/tags/coffee/media/recent?client_id=[]&access_token=[]",
        success: function(data)  {
            for (var i = 0; i < 20; i++) {
                $(".instagram").append("<a class='big-square span2' target='_blank' href='" + data.data[i].link +"'><img src='" + data.data[i].images.low_resolution.url +"'></img></a>");
            }
        }
    });
</script>
like image 653
PhDeOliveira Avatar asked Sep 07 '12 02:09

PhDeOliveira


People also ask

What are some of the limitations with Instagram's API?

Instagram gives every third-party application connected to its API a limit of how many times it can call their data. They have now reduced their API limit from 5,000 calls per hour to 200 calls per hour.

Does Instagram API still work?

In 2018, Instagram shut down its public API. Meaning, third-party apps can no longer access the API from Instagram without permission. Third-party apps now need to be approved by Instagram before they can access the API.

What is Instagram API policy?

Limitations. The API cannot access Instagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead. Content Publishing is only available to Instagram Business Users. ordering results is not supported.


1 Answers

Instagram has a 20 image limit on their API, check out this thread and my answer:

What is the maximum number of requests for Instagram?

EDIT: also, have a look at THIS

like image 51
tcd Avatar answered Oct 16 '22 03:10

tcd