I am using this following block which is mentioned in Facebook Developer. But when my App callbacks from Browser then it
To get user profile try this
if ([FBSDKAccessToken currentAccessToken])
{
[[[FBSDKGraphRequest alloc] initWithGraphPath:@"me" parameters:nil]
startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id user, NSError *error)
{
if (!error) {
NSDictionary *dictUser = (NSDictionary *)user;
self.txfName.text = [dictUser objectForKeyNotNull:@"name"];
self.txfEmail.text = [dictUser objectForKeyNotNull:@"email"];
self.txfUserName.text = [[dictUser objectForKey:@"first_name"] lowercaseString];
NSLog(@"image : https://graph.facebook.com/%@/picture?type=small",[dictUser objectForKeyNotNull:@"id"]);
}
}];
}
Hope this would help you