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 can we access the pagination function?? #62

Open
ley-288 opened this issue Jul 21, 2022 · 1 comment
Open

How can we access the pagination function?? #62

ley-288 opened this issue Jul 21, 2022 · 1 comment

Comments

@ley-288
Copy link

ley-288 commented Jul 21, 2022

while ($this->shouldFetchNextPage($response, $collection->count(), $limit)) { $response = $this->fetchResponseData($response['paging']['next']); $collection = $collection->merge($response['data']) ->reject(function ($media) { return $this->ignoreVideo($media); }); }

Hi, When I call a var_dump or {{dd($x)}} the ['paging']['next'] is not in the array.

@michaeljoyner
Copy link
Contributor

Hi @ley-288 pagination wasn’t intentionally built into this package. You can just request as many items as you want, and the package will use Instagram’s pagination to get the required amount.

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

2 participants