I want to fetch the list of user's facebook friends and i am using this code. but it is sending empty array.
Is there need for permission for this?
NSMutableDictionary* parameters1 = [NSMutableDictionary dictionary];
[parameters1 setValue:@"email,friends" forKey:@"fields"];
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/me/friends"
parameters:parameters1
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
NSLog(@"%@",result);
// Handle the result
}];