Comments (9)
@RafaelAlbani try "Instagram.getUserFeedInfoNextPage".
from jinstagram.
I will try it @didikeke, thanks!
from jinstagram.
It worked! Thank you @didikeke for your help.
from jinstagram.
can u post a snippet.. how to make work ?
from jinstagram.
Sure @shhrohan, let me open my IDE and grab an example.
from jinstagram.
In the last versions of the library, it was introduced a new method "Instagram.getUserFollowedByListNextPage" that makes the pagination even more easy, below i provide an example:
Pagination pagination = null;
do {
UserFeed userFeed;
if(pagination == null) {
userFeed = instagram.getUserFollowedByList(idProfile);
} else {
userFeed = instagram.getUserFollowedByListNextPage(pagination);
}
pagination = userFeed.getPagination();
List<UserFeedData> users = userFeed.getUserList();
for(UserFeedData user : users) {
}
} while (pagination.getNextUrl() != null);
So, basically what i do in the code above is iterating through the pages, using the "pagination.getNextUrl()" as an indicator of the final of the followers list for the the profile provided.
Let me know if it works for you.
from jinstagram.
@RafaelAlbani It worked like charm. Thanks a lot for the help 👍
from jinstagram.
one more question...
how to tell using the user id that when the user having that userid was last online or liked a photo..
from jinstagram.
Hum, when you say "last online" what do you really mean?
And about the like, when you retrieve the likes for a photo, you don't have the date of the like itself, so it is hard to figure out this kind of information.
You can know if the user that likes a photo is following the profile that post the photo, comparing the userid of the like with the followers that you have retrieved.
I hope it helps
from jinstagram.
Related Issues (20)
- Placeholder for Maven release HOT 1
- Matching code was not found or was already used HOT 4
- oEmbed endpoint does not give html of embed HOT 1
- Is the project still maintained? Getting errors on most functions. HOT 2
- Verifier HOT 1
- oEmbed wrong api endpoint
- How to get list of following users of an profile? HOT 2
- Isnt the sex info available? HOT 1
- getMediaByTagsSpecialCharacter (org.jinstagram.InstagramTest) - jUnit Test Failing
- How to get multiple images in one post? HOT 6
- About user verified. HOT 1
- How to persist the authentication for later use?
- Constant type carousel - MediaFeedData.CAROUSEL HOT 1
- Release 1.2.2 HOT 2
- comments always null
- does not return more than the media HOT 1
- Support for GraphAPI? HOT 4
- How do I upload a photo with Jinstagram?
- Error while accessing Access Token HOT 4
- fetch user stories HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jinstagram.