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 8101743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:03:45+00:00 2026-06-05T23:03:45+00:00

i am developing and application in which i want to get some feeds from

  • 0

i am developing and application in which i want to get some feeds from twitter like picture, name, tweets, time and number of reply on each tweet. i did all but could not get number of reply for each tweet…. help me out thanks in advance..
i am posting my code also.

Twitter unauthenticatedTwitter = new TwitterFactory().getInstance();
                 Paging paging = new Paging(1, 100);
                 List<twitter4j.Status> statuses = unauthenticatedTwitter.getUserTimeline("BeingSalmanKhan",paging);

                         for (Status status3 : statuses) 
                          {
                             TwitterFeeds tFeeds = new TwitterFeeds();
                                 System.out.println(status3.getText());
                                 tFeeds.strTweet = status3.getText();
                                 tFeeds.strDate  = status3.getCreatedAt().toString();
                                 System.out.println("---------------------------------- " + status3.getSource());

                                 al_tweets.add(tFeeds);

                          }
                         str_tw_name    =   unauthenticatedTwitter.showUser("BeingSalmanKhan").getName();
                         str_tw_imgurl  =   unauthenticatedTwitter.showUser("BeingSalmanKhan").getProfileImageURL().toString();



                         bitmap_twpic = NewsActivity.DownloadImage(str_tw_imgurl);
  • 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-06-05T23:03:46+00:00Added an answer on June 5, 2026 at 11:03 pm

    Try this snippet of code… it worked for me.. hope for you too

    try {
                       Twitter unauthenticatedTwitter = new TwitterFactory().getInstance();
                       //URLEntity[] uent= 
                     //First param of Paging() is the page number, second is the number per page (this is capped around 200 I think.
                     Paging paging = new Paging(1, 100);
                     List<twitter4j.Status> statuses = unauthenticatedTwitter.getUserTimeline("ashabhosle",paging);
                     System.out.println("status no 2 ="+statuses.get(2).toString());
                     long retweetcnt=statuses.get(2).getRetweetCount();
                     System.out.println("retweet count on 2nd tweet "+retweetcnt);
                             for (Status status3 : statuses) 
                              {
                                     System.out.println(status3.getText());
                              }
                } 
                   catch (Exception e) {
                    e.printStackTrace();
                    System.out.println("Failed to get timeline: " + e.getMessage());
    
                }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an application in which I want to check like to which power
I am developing a Rails 3 application from which I want to be able
I am developing an android application in which I want to get UDID of
I am developing a iPhone application in which i want to get notification in
I am developing one application which is connecting to server to get some data.
I am developing a desktop window application. After form load, get some data from
I developing an application in which i want to print the values on a
I am developing an application in which I want to record the sound of
I am developing an application in which I want to use push notification service.
I am developing an application in which what i want is when i select

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.