title: - (void)request:(FBRequest *)request didLoad:(id)result not called
body: <p>Why does this method never called? who can help me to review my code, i am a green hand.</p>
  
  <p>here is my *.h file</p>
  
  <pre><code>@interface LoginViewController : UIViewController &lt;FBSessionDelegate,FBRequestDelegate,FBDialogDelegate&gt; {
  
      Facebook *facebook;
      IBOutlet UITextField *_txt;
      NSString *facebookUserID;
  </code></pre>
  
  <p>I want to get the faceboo user ID,So i called the API '[facebook requestWithGraphPath:@"me" andDelegate:self];'</p>
  
  <pre><code>- (void) fbDidLogin
  {
      NSLog(@"[LOGIN] Used did login");
      NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
      [defaults setObject:[facebook accessToken] forKey:@"FBAccessTokenKey"];
      [defaults setObject:[facebook expirationDate] forKey:@"FBExpirationDateKey"];
      [defaults synchronize];
      // User has logged in to Facebook, now get their userId from Facebook 
      [facebook requestWithGraphPath:@"me" andDelegate:self];     
  }
  </code></pre>
  
  <p>I know below method will get the user ID,but it never called.  </p>
  
  <pre><code>- (void)request:(FBRequest *)request didLoad:(id)result 
  {
      NSLog(@"Inside didLoad");     
      if ([result isKindOfClass:[NSArray class]])
      {
          result = [result objectAtIndex:0];
      }
      // When we ask for user infor this will happen.
      if ([result isKindOfClass:[NSDictionary class]])
      {
          //NSDictionary *hash = result;         
          NSLog(@"Name: %@", [result objectForKey:@"name"]);
  
          self.facebookUserID = [result objectForKey:@"id"];
          NSLog(@"ID: %@", [result objectForKey:@"id"]);
      }
  }
  </code></pre>