Facebook SDK issue with login
===

Using the Hackbook Facebook code I have a problem with the screen just after the user logs in to Facebook.  Right after the user logs in s/he gets the same pre-login screen.  When the login button is pressed, s/he get to the correct (showLoggedIn) screen.  See below is the code that is used, but I have yet to figure out the changes necessary.

Is there any way in which there is a break in the code to login to Facebook and then after the login sequence (through a browser) to continue to the next sequence (showLoggedIn)?  Thank you.


    - (void)login {
        HackbookAppDelegate *delegate = (HackbookAppDelegate *)[[UIApplication sharedApplication] delegate];
        if (![[delegate facebook] isSessionValid]) {
            [[delegate facebook] authorize:permissions];
        } else {
            [self showLoggedIn];
        }
    }

