I made a page to display Instagram photos that have some hashtag pre-selected by me. I used an example that I found on the internet (I can not remember the source) and I do not know how to paginate the photos.
How can I make paging with the Instagram API?
Script Example:
var userid = "12345678";
var accessToken = "12345678.5b9e1e6.37fbbfab2c594bb2b15c24161de6a744";
var tag = 'cute';
$.ajax({
type:"GET",
dataType:"jsonp",
cache:false,
url:"https://api.instagram.com/v1/tags/"+tag+"/media/recent?client_id="+userid+"&access_token="+accessToken+"&count=33&max_tag_id="+userid+"",
success:function(data) {
for (var i = 0; i < 100 ; i+=1){
$("#instagram").append("<figure class='miniatura_instagram img-rounded'><a href='" + data.data[i].link+"' target='_blank'><img alt='"+ data.data[i].user.full_name +"' src='" + data.data[i].images.low_resolution.url +"' ></a><figcaption class='cor'><a>@"+ data.data[i].user.full_name+" ⋆ ❤ "+data.data[i].likes.count+"</a></figcaption></figure>");
}
}
});