Facebook IOS SDK after login refresh view controller
===

I have implemented the facebook IOS SDK and successful login facebook in my APP.

However I want to change the view controller content after loged in the facebook.

Facebook doc said that it will call the funtion:

    - (void)fbDidLogin {
        myDelegate *delegate = (myDelegate *)[[UIApplication sharedApplication] delegate];
        [self storeAuthData:[[delegate facebook] accessToken] expiresAt:[[delegate facebook] expirationDate]];
        [self showLoggedIn];
    
    }

In the function, I called my function to refresh the UI:

    - (void)showLoggedIn {
        [self apiGraphMe];
    
        loginButton.hidden = YES;
        logoutButton.hidden = NO;
        WebView3.hidden = NO;
    }

However, it seems that the code of my function to refresh the UI is not able to take effect, why is that?

I added some break point in my app, when it is running the

    showLoggedIn

the program is just swapping back to my app from facebook auth screen. Any hints?