why am I getting old mentions in jtwitter?

110 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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

7
On

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.