title: How to use FBFriendPicker to get userID from Facebook iOS api
body: <p>I am currently using FBFriendPicker from the facebook api for iOS to get a selected friend's name. How might I obtain the friend's userID at the same time. The function below is used for the name.</p>
  
  <pre><code>// Facebook integration
  - (void)facebookViewControllerDoneWasPressed:(id)sender {
      NSString *text;
  
      // we pick up the users from the selection, and create a string that we use to update the text view
      // at the bottom of the display; note that self.selection is a property inherited from our base class
      for (id&lt;FBGraphUser&gt; user in self.friendPickerController.selection) {
          self.name.text = user.name;
      }
  
      [self dismissModalViewControllerAnimated:YES];
  }
  </code></pre>