我想在 ios 6 集成的 Facebook 上检索 facebook 帐户的信息,现在我这样做了,我只能检索用户名:
ACAccountType *accountTypeF = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
[accountStore requestAccessToAccountsWithType:accountType withCompletionHandler:^(BOOL granted, NSError *error) {
if(granted) {
NSArray *accountsArray = [accountStore accountsWithAccountType:accountTypeF];
ACAccount *facebookAccount = [accountsArray objectAtIndex:0];
if (facebookAccount.username) {
}
}
}];
我想知道如何检索帐户的姓名和姓氏以及用户的图片...有人可以帮助我吗?