System.out.println("Usage: java twitter4j.examples.favorite.DestroyFavorite [status id]");
System.exit(-1);
}
try {
Twitter twitter = new TwitterFactory().getInstance();
twitter.destroyFavorite(Long.parseLong(args[0]));
System.out.println("Successfully unfavorited status [" + args[0] + "].");
System.exit(0);
} catch (TwitterException te) {
te.printStackTrace();
System.out.println("Failed to unfavorite status: " + te.getMessage());