I want a list of other Facebook friends that have logged into my app, but the code below is not working. I know I have other friends on the app but all it prints is "data(); totalCount(796);" Why is data always empty?
let params = ["fields": "id, first_name, last_name, middle_name, name, email, picture"]
let request = FBSDKGraphRequest(graphPath: "me/friends", parameters: params)
request!.start { (connection, result, error) -> Void in
if error != nil {
print(error!)
}
else if result != nil{
print(result!)
}
}