#import <SACFacebookAccountRequest.h>
...
SACFacebookAccountRequest * request = [SACFacebookAccountRequest new];
request.facebookAppId = @"...";
request.facebookPermissions = @[ @"email" ];
[request requestAccessWithSuccess:^(ACAccount * acc) {
// Whooray!
} failure:^(NSError *error) {
if (![error.domain isEqualToString:SACStoreErrorDomain]) {
// Oh no! Unknown error!
}
}];
Eduardo Costa [email protected]
SimplifiedACAccounts 可在 LGPLv3 许可协议下使用。有关更多信息,请参阅 LICENSE 文件。