Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the previous page? #42

Open
alexweb-zz opened this issue Oct 8, 2014 · 2 comments
Open

How to get the previous page? #42

alexweb-zz opened this issue Oct 8, 2014 · 2 comments

Comments

@alexweb-zz
Copy link

How to get the previous page? I see only Instagram\Collection\MediaCollection::getNext() method.

@lucien144
Copy link

This is not a problem of this library, but Instagram API. Instagram API does not support something like getPrev(). You have to change the max_id to get "previous" media. It's dumb, but that's how it is.

@HeathNaylor
Copy link

I am debating implementation of this. If you are doing max_id/min_id what method would I use to pass those into? Looking at how the proxy handles parameters it seems that I can just pass them as an array into getTagMedia() for example.

I am thinking I will need to store the min/max as a json object within the users local storage to truly keep pagination. Frustration in the limited API aside, it might be a better idea to setup a memcache or redis cache to hold the objects for later use. This would help cut down on requests to the api and seems to be what Instagram is hinting at with not providing a getPrev() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants