S
S
Sergei Gurdjiyan2018-06-05 22:48:52
Instagram
Sergei Gurdjiyan, 2018-06-05 22:48:52

How to create an instagram feed paginator?

You need to create a load of 10 user instagram posts.
I get the first posts by url

https://api.instagram.com/v1/users/self/media/recent?access_token=MYTOKEN&count=10

the response is an object that has a property
pagination: {
  next_max_id: xxx,
  next_url: url
}

The second request is similar to the first, but with the addition&max_id=xxx
https://api.instagram.com/v1/users/self/media/recent?access_token=MYTOKEN&count=10&max_id=xxx

An object with the following posts comes in response, but the pagination property no longer contains the specified properties, although there are still posts.
What is the problem? How to download 10 posts from instagram?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question