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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:00:57+00:00 2026-06-16T18:00:57+00:00

I have an app I am developing with a users timeline in a table

  • 0

I have an app I am developing with a users timeline in a table view. It will be the same users timeline in every app. I have already coded this and it works perfectly. My issue is that when I change the API version from 1 to 1.1 in the call it stops working. All tweets will be going through a tweet sheet so I don’t need authentication. Do I need to add code other than just changing the API version in the call, or set up authorization just to display a timeline with the new API? I’m not adding any functionality other than simply displaying a single users timeline and using tweet sheets to respond. I have attached my code. Any help would be great. Thank you.

- (void)fetchTweets
{
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"https://api.twitter.com/1/statuses/user_timeline.json?include_rts=false&screen_name=johnnelm9r&count=100"]];

        if (data == nil)
        {

        }

        else
        {
            NSError *error;

            tweets = [NSJSONSerialization JSONObjectWithData:data
                                                     options:kNilOptions
                                                       error:&error];
        }

        dispatch_async(dispatch_get_main_queue(), ^{
            [self.twitterTableView reloadData];
        });

    });

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(reachabilityChanged:)
                                                 name:kReachabilityChangedNotification
                                               object:nil];
    self.reachability = [Reachability reachabilityWithHostName:@"www.apple.com"];
    [self.reachability startNotifier];
}
  • 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-16T18:00:59+00:00Added an answer on June 16, 2026 at 6:00 pm

    This is what I ended up coming up with. It calls just fine for what I need it to do. Hopefully it helps someone else as well.

    - (void)fetchTweets
    {
    twitterLoader.animationImages = [NSArray arrayWithObjects:
                                     [UIImage imageNamed:@"StatusIndicator.png"],
                                     [UIImage imageNamed:@"StatusIndicator1.png"],
                                     [UIImage imageNamed:@"StatusIndicator2.png"],
                                     [UIImage imageNamed:@"StatusIndicator3.png"],
                                     [UIImage imageNamed:@"StatusIndicator4.png"],
                                     [UIImage imageNamed:@"StatusIndicator5.png"],
                                     [UIImage imageNamed:@"StatusIndicator6.png"],
                                     [UIImage imageNamed:@"StatusIndicator7.png"],
                                     [UIImage imageNamed:@"StatusIndicator8.png"],
                                     [UIImage imageNamed:@"StatusIndicator9.png"],
                                     [UIImage imageNamed:@"StatusIndicator10.png"],
                                     [UIImage imageNamed:@"StatusIndicator9.png"],
                                     [UIImage imageNamed:@"StatusIndicator8.png"],
                                     [UIImage imageNamed:@"StatusIndicator7.png"],
                                     [UIImage imageNamed:@"StatusIndicator6.png"],
                                     [UIImage imageNamed:@"StatusIndicator5.png"],
                                     [UIImage imageNamed:@"StatusIndicator4.png"],
                                     [UIImage imageNamed:@"StatusIndicator3.png"],
                                     [UIImage imageNamed:@"StatusIndicator2.png"],
                                     [UIImage imageNamed:@"StatusIndicator1.png"],
                                     nil];
    
    twitterLoader.animationDuration = 0.8;
    [twitterLoader startAnimating];
    
    ACAccountStore *store = [[ACAccountStore alloc] init];
    ACAccountType *twitterAccountType =
    [store accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
    
        //  Request permission from the user to access the available Twitter accounts
    [store requestAccessToAccountsWithType:twitterAccountType
                                   options:nil
                                completion:^(BOOL granted, NSError *error)
     {
     if (!granted)
         {
         NSLog(@"User rejected access to the account.");
         }
    
     else
         {
         [twitterLoader startAnimating];
    
         NSArray *twitterAccounts =
         [store accountsWithAccountType:twitterAccountType];
    
         if ([twitterAccounts count] > 0)
             {
             ACAccount *account = [twitterAccounts objectAtIndex:0];
             [twitterLoader startAnimating];
    
             NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
             [params setObject:@"johnnelm9r" forKey:@"screen_name"];
             [params setObject:@"100" forKey:@"count"];
             [params setObject:@"0" forKey:@"include_entities"];
             [params setObject:@"0" forKey:@"include_rts"];
    
                 //  The endpoint that we wish to call
             NSURL *url =
             [NSURL
              URLWithString:@"http://api.twitter.com/1.1/statuses/user_timeline.json"];
    
             SLRequest *request = [SLRequest requestForServiceType:SLServiceTypeTwitter
                                                     requestMethod:SLRequestMethodGET
                                                               URL:url
                                                        parameters:params];
    
    
                 // Attach the account object to this request
             [request setAccount:account];
    
             [request performRequestWithHandler:^(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error)
              {
              if (!responseData)
                  {
                  NSLog(@"%@", error);
                  }
    
              else
                  {
                  NSError *jsonError;
                  tweets = [NSJSONSerialization JSONObjectWithData:responseData
                                                           options:NSJSONReadingMutableLeaves
                                                             error:&jsonError];
                  if (tweets)
                      {
                      NSLog(@"%@", tweets);
                      [self.twitterTableView reloadData];
    
                      [twitterLoader stopAnimating];
                      }
    
                  else
                      {
                      NSLog(@"%@", jsonError);
                      }
                  }
              }];
             [self.twitterTableView reloadData];
             [twitterLoader stopAnimating];
             }
         }
     }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(reachabilityChanged:)
                                                 name:kReachabilityChangedNotification
                                               object:nil];
    self.reachability = [Reachability reachabilityWithHostName:@"www.apple.com"];
    [self.reachability startNotifier];
    }
    

    I also added an easy loader and reachability. If you don’t need it just delete the NSNotification at the bottom.

    And make sure to add the

    Accounts and Social frameworks

    and import their header files to your .m file you use it in.

    Good luck!

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

Sidebar

Related Questions

I'm developing an app which will have a central database users can add entries
I am developing an app in which I have a table. In the table
I am developing a resume app and have created a table called areas using
I am developing an app which allows users to color the images. I have
I have an app I'm developing which relies heavily on users being able to
I am developing a Node.js app where I will ask the users to authenticate
Background I'm developing a django app for a vacation rental site. It will have
I have an app that I'm developing, in it users can choose a name
I am developing iOS app using phonegap. Users first have to register or log
I am developing an app that will allow users to capture images of secure

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.