title: How to perform a segue in FBSessionDelegate Method?
body: <p>I've got a question about the facebook iPhone SDK, i hope somebody can help me! First of all: i'm using storyboards. In my AppDelegate file I initialize Facebook like this:</p>
  
  <pre><code>Start *startController = [[Start alloc] init];
  facebook = [[Facebook alloc] initWithAppId:kAppId andDelegate:startController];
  </code></pre>
  
  <p>As a result of that I can handle the delegate selectors in my StartController. Up to here everything works fine, a facebook user can login and I get information about him. My problem starts here:</p>
  
  <pre><code>#pragma mark - FBSessionDelegate Methods
  - (void)fbDidLogin {
  
      AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
      [self storeAuthData:[[delegate facebook] accessToken] expiresAt:[[delegate facebook] expirationDate]];
  
      [self performSegueWithIdentifier:@"facebookLoginSegue" sender:nil];
  
  }
  </code></pre>
  
  <p>This selector is called when the user successfully logged in. There is a segue called 'facebookLoginSegue' in my storyboard which starts from the viewcontroller. The viewcontroller has got the class 'Start'. </p>
  
  <p>// edit: I've connected the segue to another view controller, of course.</p>
  
  <p>Than I get an error:</p>
  
  <pre><code>*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: &lt;NSInvalidArgumentException&gt; Receiver (&lt;Start: 0x94b48d0&gt;) has no segue with identifier 'facebookLoginSegue'
  </code></pre>
  
  <p>I don't understand why the segue cannot be found. I've already tested with an IBAction if that segue exists - but if I do it like that, it works.</p>
  
  <p>Can someone tell me what I'm doing wrong? What can I do to perform a segue in that delegate selector? 
  Thank you for help.</p>