title: Getting Facebook Profile Name and Picture IOS 5.1
body: <p>I am having trouble getting facebook name and picture at the same time. I can take only one of them each request.</p>
  
  <pre><code>-(void)fbDidLogin{
      // Save the access token key info.
      [self saveAccessTokenKeyInfo];
  
      // Get the user's info.
      [facebook requestWithGraphPath:@"me/?fields=first_name,picture" andDelegate:self];
  
  }
  
  -(void)request:(FBRequest *)request didLoad:(id)result{
  
      if ([result isKindOfClass:[NSArray class]]) {
  
          result = [result objectAtIndex:0];
  
          if ([result objectForKey:@"first_name"]) {
              [lblUser setText:[NSString stringWithFormat:@"Welcome %@!", [result objectForKey:@"first_name"]]];
              // Show the publish button.
              [btnPublish setHidden:NO];
          }
      }
      else {
         imageView.image = [UIImage imageWithData:result];
      }      
  }
  </code></pre>
  
  <p>The errors I get</p>
  
  <pre><code>__NSCFDictionary length]: unrecognized selector sent to instance
  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary length]: unrecognized selector sent to instance 
  </code></pre>
  
  <p>If i approach with two requests</p>
  
  <pre><code>-(void)fbDidLogin{
      // Save the access token key info.
      [self saveAccessTokenKeyInfo];
  
      // Get the user's info.
      [facebook requestWithGraphPath:@"me/picture" andDelegate:self];
      [facebook requestWithGraphPath:@"me" andDelegate:self];
  }
  </code></pre>
  
  <p>and with the same -(void)request:(FBRequest *)request didLoad:(id)result 
  the error i get is</p>
  
  <pre><code>[__NSCFDictionary length]: unrecognized selector sent to instance
  </code></pre>
  
  <p>so how can i request to get facebook name and picture and how can handle incoming data?</p>