title: IOS6 FB sdk startForMeWithCompletionHandler how to set the result as function return variable
body: <p>I am trying to get simple current user info and return it as parameter from the function . From reading I understand that I need to use the startForMeWithCompletionHandler method. Great.</p>
  
  <p>After I authenticate with Facebook, I try to invoke the API by calling the   startForMeWithCompletionHandler method. However, the block executed but its never returned as the method return parameter . Why?</p>
  
  <p>This is the method that I am calling:</p>
  
  <pre><code>-(id&lt;FBGraphUser&gt;) getLoggedInUserdata
  {
      __block id&lt;FBGraphUser&gt; userInfo;
      if(FBSession.activeSession.isOpen)
      {
          NSLog(@"Session is open");
      }
  
      [FBRequestConnection startForMeWithCompletionHandler:^(FBRequestConnection *connection, id&lt;FBGraphUser&gt; userInfoResult, NSError *error) {
          if(FBSession.activeSession.isOpen)
          {
              if(!error)
              {
                  userInfo = userInfoResult;
              }
          }
      }];
  
      return userInfo;
  }
  </code></pre>
  
  <p>from MainViewController :</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
      self.title = @"Facebook Sample app";
      httpClient = [[FBCHttpClient alloc] init];
  
  }
  
  - (void)viewWillAppear:(BOOL)animated {
      [super viewWillAppear:animated];
  
      if(FBSession.activeSession.isOpen)
      {
          id&lt;FBGraphUser&gt; fbGraphUser = httpClient.getLoggedInUserdata;
          NSLog(@"%@",[fbGraphUser name]);
      }
  
  }
  </code></pre>
  
  <p>I call it after I successfully authenticate against Facebook and FBSession.activeSession.isOpen is true.</p>
  
  <p>What am I doing wrong?</p>