English | Japanese | Korean


  1. How do I get “from Twitter4J” appended to updates sent from my application?

  2. 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:

  3. Is Twitter4J tread-safe?

  4. Yes. Twitter4J is thread-safe and you can make method calls concurrently.

  5. Where to report bugs?

  6. 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:

  7. How do I configure proxy server for Twitter4J?

  8. You can either to use system properties(-Dtwitter4j.http.proxyHost, -Dtwitter4j.http.proxyPort) or twitter4j.properties.

    twitter4j.properties can to be located in the root of your app's classpath, in WEB-INF/ directory, or in the process's default directory.

  9. How do I debug my application?

  10. You can set the system property twitter4j.debug to true to dump the stream between your client and the twitter API.

  11. The code examples don't compile on my environment(Java1.4).

  12. 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() + ":" +
    See also: