In my timeline @ my twitter home page,it shows that my status has been retweeted by a particular user,but the code below returns ZERO?Why?
Twitter twitter=new TwitterFactory().getInstance();
try{
User u= twitter.verifyCredentials();
Status s=u.getStatus();
System.out.println("@"+u.getScreenName()+"-"+s.getText());
System.out.println("\nNumber of Retweets-"+s.getRetweetCount());
System.out.println(s.getCreatedAt());
}
catch(TwitterException e)
{
System.out.println(e);
}
The status is confirmed by the creation date and the text.
That works now, perhaps the twitter4j
source wasn't updated.Anyways,I didn't expect this.