Comment obtenir le nom d'utilisateur et l'adresse e-mail pour Facebook SDK?

Le code que j'ai utilisé

 if (FBSession.activeSession.state == FBSessionStateOpen
        || FBSession.activeSession.state == FBSessionStateOpenTokenExtended) {

        //Close the session and remove the access token from the cache
        //The session state handler (in the app delegate) will be called automatically
        [FBSession.activeSession closeAndClearTokenInformation];


        //If the session state is not any of the two "open" states when the button is clicked
    } else {
        //Open a session showing the user the login UI
        //You must ALWAYS ask for basic_info permissions when opening a session
        [FBSession openActiveSessionWithReadPermissions:@[@"basic_info,email"]
                                           allowLoginUI:YES
                                      completionHandler:
         ^(FBSession *session, FBSessionState state, NSError *error) {




             //Retrieve the app delegate
             AppDelegate* appDelegate = [UIApplication sharedApplication].delegate;
             //Call the app delegate's sessionStateChanged:state:error method to handle session state changes
             [appDelegate sessionStateChanged:session state:state error:error];
         }];
    }

à partir de ce code que j'ai besoin pour obtenir le nom d'utilisateur et mail id. si quelqu'un connais la solution merci de m'aider merci d'avance.

OriginalL'auteur Peer Mohamed Thabib | 2014-02-25