title: Facebook Connect open the Facebook App
body: <p>i am trying to implement the facebook connect on my iphone App.</p>
  
  <p>after the first confirm the app stay in the facebook app and dont return to my app.</p>
  
  <p>i call the dialog methood from the view controller with a button but i want to post 
  a message about the app when the user logs in how can i do it?</p>
  
  <pre><code>- (void)viewDidLoad{
      [super viewDidLoad];
      facebook = [[Facebook alloc]initWithAppId:@"" andDelegate:self];
  
      NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
      if ([defaults objectForKey:@"FBAccessTokenKey"] 
          &amp;&amp; [defaults objectForKey:@"FBEpirationDateKey"])
      {
          facebook.accessToken = [defaults objectForKey:@"FBAccessTokenKey"];
          facebook.expirationDate = [defaults objectForKey:@"FBExpirationDateKey"];
      }
  
      if (![facebook isSessionValid]) {
          [facebook authorize:nil ];
      }
  }
  
  -(void)fbDidLogin{
      NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
      [defaults setObject:[facebook accessToken] forKey:@"FBAccessTokenKey"];
      [defaults setObject:[facebook expirationDate] forKey:@"FBExpirationDateKey"];
      [defaults synchronize];
  }
  
  -(IBAction)dialog:(id)sender{
      [facebook dialog:@"feed" andDelegate:self];
  }
  </code></pre>
  
  <p>TNX!</p>