I need my APP to be able to get data on the user Facebook friends. I managed to get the id of the Facebook friends but I'm stuck on getting their data.
I found an Objective C code that supposed to get the data, the problem is that I am using swift but I don't know how to convert the Objective C code to swift.
This is the code:
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{user-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Any suggestions.