title: Getting facebook friends profile pictures the fastest way - iOS
body: <p>I am trying to get my friends pictures with FBConnect,
  The requested URL is:</p>
  
  <pre><code>pictureURL =  [NSString stringWithFormat:@"https://graph.facebook.com/%@/picture?width=50&amp;height=50", [data objectForKey:@"id"]];
  </code></pre>
  
  <p>And the image set here: </p>
  
  <pre><code>NSString *pictureUrl = [[NSString alloc] initWithFormat:@"%@", [self getProfileUrl:object]];
  [friend setImage:pictureUrl];
  </code></pre>
  
  <p>the set method is:</p>
  
  <pre><code>NSData *pictureData = [NSData dataWithContentsOfURL:[NSURL URLWithString:pictureUrl]];
  UIImage *image = [UIImage imageWithData:pictureData];
  if (image != nil)
      friendImage = image;
  </code></pre>
  
  <p>Very simple,
  But for a big amount of friends this process takes tooooooo long,
  Is there a way to get the profile images faster, or more efficient than this?</p>