How do I get “from Twitter4J” appended to updates sent from my application?
- Twitter API Wiki - FAQ - How do I get “from [MyApp]” appended to updates sent from my API application?
Is Twitter4J tread-safe?
Where to report bugs?
How do I configure proxy server for Twitter4J?
How do I debug my application?
The code examples don't compile on my environment(Java1.4).
In order to get your app name seen on twitter.com, you need to register your application at twitter.com in advance, and use OAuth scheme.
See also:
Yes. Twitter4J is thread-safe and you can make method calls concurrently.
Please feel free to post any reports to the Twitter4J list. If you
are sure that the nature of the problem is in the Twitter API itself, you may want to report to the Twitter Deveopment Talk.
See also:
You can either to use system properties(-Dtwitter4j.http.proxyHost, -Dtwitter4j.http.proxyPort) or
twitter4j.properties.
http.proxyHost=your.proxy.host http.proxyPort=8080twitter4j.properties can to be located in the root of your app's classpath, in WEB-INF/ directory, or in the process's default directory.
You can set the system property twitter4j.debug to true to dump the stream between your client and the twitter API.
Example codes for methods return a list of object such as getTimeline(), getUserTimeline(), and getFriendsTimeline() use Java Generics grammar which is applicable Java 5.0 or later. Projects using JDK1.4 (including the Processing platform) or earlier need to cast explicitly to get elements inside the list as follows:
Twitter twitter = new Twitter(twitterID,twitterPassword);
List statuses = twitter.getFriendsTimeline();
System.out.println("Showing friends timeline.");
for(int i=0; i < statuses.size() ; i++) {
Status status = (Status)statuses.get(i);
System.out.println(status.getUser().getName() + ":" +
status.getText());
}
See also: