I am trying to get the email address from a user. He logs in, I ask permission to access email and he chooses ok. Then I use the graph API from facebook to access the email addr
I found answer:
NSArray *permissions = [[NSArray alloc] initWithObjects:@"user_likes",@"offline_access",@"read_stream",@"publish_stream",@"email",nil];
[facebook requestWithGraphPath:@"me"andParams:params andDelegate:self];
-(void)facebookLoginScreen:(NSDictionary *)result
{
NSLog(%@,[result objectForKey:@"email"]);
}
Ah nevermind, it works. I had to use @"me"
in [facebook requestWithGraphPath: @"me" andDelegate: self];
instead of the URL.