Просто искам да поискам данни от Graph API на Facebook, напр. вземете основната информация за текущия потребител.
Документът за Objective-C е: https://developers.facebook.com/docs/ios/graph#userinfo
[FBRequestConnection startForMeWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
/* My question: How do I read the contents of "result" in Swift? */
// Success! Include your code to handle the results here
NSLog(@"user info: %@", result);
} else {
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
}
}];
Все още няма документ за Swift и съм объркан относно параметъра „резултат“, чийто тип е „id“.