why am I getting old mentions in jtwitter?
Question
I am using jtwitter to get the user's latest mentions (using the code below) but the earliest mention I'm getting is 20 days old.
twitter.getMentions();
I am getting the timeline and DMs correctly.
Is anyone saw that problem before and can help me with that?
Solution 2
I set the max result to 20 and it solved
i don't know why that problem even accured because the default is 20 anyway
OTHER TIPS
As I know twitter.getMentions()
returns the last 20 updates by default. You can increase this number using setMaxResults
method. Also you can use setSinceDate and setSinceId methods.
More you can find here.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow