Get facebook logged in user information

57 views Asked by At

I am using following bunch of code in button action to invite facebook friend.

    [FBWebDialogs
      presentRequestsDialogModallyWithSession:nil
      message:NSLocalizedString(@"FBinviteMessage", nil)
      title:nil
      parameters:nil
      handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {}
     ];

This code shows a login view on its own if the user is not logged in. What I want to know is that how to get logged in user information if using above code.

1

There are 1 answers

0
Nirav Gadhiya On

Please dont use FBWebDialogs, it is deprecated by Facebook. https://developers.facebook.com/docs/reference/ios/3.9/class/FBWebDialogs

Please refer this to get latest SDK and use Facebook documentation for implementing this.

Facebook Developer Website has the best documentation for implementing FacebookSDK