Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3597224
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:05:26+00:00 2026-05-18T20:05:26+00:00

I want to auto tweet from a java application. What is the simplest way

  • 0

I want to auto tweet from a java application. What is the simplest way to do it? Can i avoid using libraries like Twitter4j etc.,

I need an implementation for a simple api like

Tweet(username, password, message)..

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:05:27+00:00Added an answer on May 18, 2026 at 8:05 pm

    I recommend you to use twitter4j and using this you can create oAuth requests easily.
    Twitter rate limits apply to desktop application and it is 150/hour.
    Twitter does not support basic authentication with username and password anymore.

    You are required to create an application in twitter and using the consumer key and secret only you can access your twitter account.

    If you are going to access the twitter by a desktop application then you have to select
    Application Type: as “Client” while creating the application.
    Then you can use the syntax below to update your status in twitter

     ConfigurationBuilder cb = new ConfigurationBuilder();
                cb.setDebugEnabled(true)
                    .setOAuthConsumerKey(consumerKey)
                    .setOAuthConsumerSecret(consumerSecret)
                    .setOAuthAccessToken(oAuthAccessToken)
                    .setOAuthAccessTokenSecret(oAuthAccessTokenSecret);
                TwitterFactory tf = new TwitterFactory(cb.build());
                Twitter twitter = tf.getInstance();
                        twitter.updateStatus("This is a test message"); //ThrowsTwitterException
    

    I hope this helps you… Please let me know if this is not the answer you were looking for.
    Implementing your own oAuth request involve creating signature that for me was complicated and it is sensitive to time and time format that we send.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using devexpress TextEdit in c#.net application and i want to implement auto
i want to auto post to a user wall from my iphone applications (
i want to auto adjust my iframe height according to their content but in
I want th auto generate values for the empId (or empName) when inserting values
I want to auto fill in a web page and then submit the data
I have a wordpress blog inside the company where I write blogs. I want
I have a UIImageView that I dynamically load with an Image using myTableViewCell.myImageView.image =
I want to have my app automatically run at start time in order to
I want an id and name to be primary key for my table. I
I want to show a notification after receiving a WAP push message in my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.