I'm using Twitter4J API for my application. I want to get all the statuses I had on my Twitter account (or if not all, most of them). Is this possible? Currently I am using getUserTimeline() but this only retrieves the last 20...
Thanks a lot and regards,
Krt_Malta
// retrieves the first page's 200 tweets
getUserTimeline(new Paging(1, 200));
Twitter doesn't allow searching for all the tweets (they are expired), so you'll only be able to query as far back as Twitter allows.
From Twitter
We also restrict the size of the search index by placing a date limit on the updates we allow you to search. This limit is currently around 1.5 weeks but is dynamic and subject to shrink as the number of tweets per day continues to grow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With