Skip to main content

How to post a Tweet in Java using Twitter REST API and Twitter4J Library

Please note these forums are being decommissioned and use the new and improved forums at
3 replies [Last post]
Joined: 2005-03-13

How to post a Tweet in Java using Twitter REST API and Twitter4J Library

In this post, I will demonstrate how you can post a Tweet in Java using the Twitter REST API and an open source third party twitter integration library in java called Twitter4J.

~ Setup Twitter Developer Access
~ Create new Twitter Application and Generate Consumer Key and Consumer Secret against your App
~ Generate Access Token and Access Token Secret against your Twitter Account
~ Setup and Configure Twitter4J basics
~ Tweet your updates programmatically in Java
~ Analyze response from Twitter Server
~ Test your application on your live account!

Click here to Read More


Subscribe to Code Of The Day via: RSS Feed | Google Friend Connect

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2014-01-26

I am really happy to study it and being able to reveal my ideas on it. Excellent article, it give a lot of knowledge when I read it, it is very interesting to me, because we are using java application in our school.

Joined: 2004-05-25

Cool post !

Helio Frota

Joined: 2005-03-13

Thanks, I'm glad its useful.