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

  • SEARCH
  • Home
  • 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 want to auto tweet from a java application. What is the simplest way
I want to auto-generate a HTML table from some custom data. One of the
I want to auto gen some DTOs from some of my existing objects, I
I want to enable auto update script in flex3. i am using below code
I am using JPanel I want to auto expand all the panels on page
I have an asp.net web application. I want to auto log in a user
I want to auto publish the sites using teamcity. I am using teamcity's Visual
I have table with fields like id,title,no,url. I want to auto increment id field
Users want Auto-Lock turned off while using my navigation utility. Is it possible to
i want to auto post to a user wall from my iphone applications (

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.