title: How to get the friendslist of twitter user in iPhone?
body: <p>I am working on a Twitter based application where I want to fetch the friend list of logged-in Twitter user. I have done a code for this but it is returning error.</p>
  
  <pre><code>NSMutableArray *arr = [[NSMutableArray alloc] init];
  
  
      NSMutableDictionary *accountDictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:account.username, @"screen_name", nil];
  
      [accountDictionary setObject:[[[account dictionaryWithValuesForKeys:[NSArray arrayWithObject:@"properties"]] objectForKey:@"properties"] objectForKey:@"user_id"] forKey:@"user_id"];
  
      NSURL *followingURL = [NSURL URLWithString:[NSString stringWithFormat:@"https://api.twitter.com/1.1/friends/list.json?cursor=-1&amp;screen_name=%@&amp;skip_status=true&amp;include_user_entities=false",account.username]];
  
      NSDictionary *parameters = [NSDictionary dictionaryWithObjectsAndKeys:account.username, @"screen_name", nil];
  
      TWRequest *twitterRequest = [[TWRequest alloc] initWithURL:followingURL
                                                      parameters:parameters
                                                   requestMethod:TWRequestMethodGET];
  
      [twitterRequest setAccount:account];
  
  
  
          NSError *jsonError = nil;
      NSData *responseData;
  
          NSDictionary *twitterFriends = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONWritingPrettyPrinted error:&amp;jsonError];
  
          [accountDictionary setObject:[twitterFriends objectForKey:@"list"] forKey:@"friends_list"];
  
      return arr;
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>{ errors = ( { code = 34; message = "Sorry, that page does not exist"; } ); } </p>
  </blockquote>