pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
880 stars 137 forks source link

Is it possible to get next medias via ajax call as separate request? #157

Closed camohub closed 3 years ago

camohub commented 4 years ago

Version(s) affected: 6

Description
Is it possible to get more medias via ajax call. It means if I load first 10 images and then wants to get next 10 images but as a separate request. Is there a way to start on the position stored in some kind of cache?

Additional context
I would like to fill carousel which should load more images dynamically.

Is it possible or not?

pgrimaud commented 4 years ago

Hello,

Yes it's possible. You can use the getMoreMediasWithCursormethod in Api.php.

Example : https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/medias-endcursor.php

camohub commented 4 years ago

Thanks a lot. I solved it in another way. Now I am facing InstagramAuthException(code: 0): Checkpoint required, please provide IMAP credentials to process authentication. issue. Hope this doc help me to solve it https://github.com/pgrimaud/instagram-user-feed#version-63-checkpoint-challenge-bypass

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.