Q:

Retrieving facebook city and country

I'm trying to retrieve a users city and country by using the FBRequestConnection. gender, id, name seem to work, but cant retrieve the location. It just returns (null), how can i retrieve this?
            [FBRequestConnection
             startForMeWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
                 if (!error) {
                     NSString *facebookId = [result objectForKey:@"id"];
                     NSString *facebookName = [result objectForKey:@"name"];
                     NSString *facebookGender = [result objectForKey:@"gender"];
                     NSString *facebookCity = [result objectForKey:@"location"];
                     NSLog(@"%@", facebookCity);
                }

           }];

A:

look at the response from Graph API 
{
 "id": "1496537134",
 "name": "XXX XXX XXX",
 "location": {
    "id": "106517799384578",
    "name": "New Delhi, India"
 }
}

here location is dictionary , not string. 
NSString *facebookCity = [result objectForKey:@"location"][@"name"];

should work. 
before getting location detail, you need to ask for permission, 
Facebook login with Permission

