I am working on an iOS 5 app where i need to get user profile data after successful login.
For now I am getting a access token when user get successful login.
<
in your .h
#import
Now in Your .m file just call below method to get user data
-(void)loginViewFetchedUserInfo:(FBLoginView *)loginView user:(id)user{
NSLog(@"usr_id::%@",user.id);
NSLog(@"usr_first_name::%@",user.first_name);
NSLog(@"usr_middle_name::%@",user.middle_name);
NSLog(@"usr_last_nmae::%@",user.last_name);
NSLog(@"usr_Username::%@",user.username);
NSLog(@"usr_b_day::%@",user.birthday);
}
Above method is defined in FBLoginView.h you can see there.
This method i have added According to latest facebookSDK.framework.Hope it will help you.