z3r0
z3r0

Reputation: 73

How can I display more images using Instagram API

Currently I'm doing a practice project using Instagram API. I got stuck about how can I view more images rather than 20 images by default using Instagram API on user recent media. I believe there was something I should do with pagination when Instagram returns that value from my API call. Below is JSON which I got from Instagram:

pagination =     {
"next_max_id" = "730184174375812259_19769622";
"next_url" = "https://api.instagram.com/v1/users/19769622/media/recent?access_token=16587801.7ce2ffe.f1ccd00d481c4858a2416d8983fe66f5&max_id=730184174375812259_19769622";
};

With this JSON data how can I implement like a real Instagram app which means when I'm scrolling down to the bottom in my collection view, the 'next URL' from JSON data got called and load a new images from this data?

PS: below I attach my app screenshot for better understanding:

Upvotes: 2

Views: 140

Answers (0)

Related Questions