Frank Junior
Frank Junior

Reputation: 585

Retweet using Twitter4j Android

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

Answers (1)

MByD
MByD

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

Related Questions