Reputation: 585
i'm trying make simple app twitter and i use twitter4j library and i got good tutorial how to login and post twitter used that library. my app display timeline and had retweet button, my question how to retweet using twitter4j library?
Upvotes: 5
Views: 2825
Reputation: 137412
You can call Status#retweet()
or TwitterStream#retweet()
with the original tweet id.
You can also use Twitter#retweetStatus()
, for example:
Twitter twitter = new TwitterFactory().getInstance();
twitter.retweetStatus(idOfStatusToRetweet);
Upvotes: 10