Pie*_*ero 2 iphone account facebook ios6
我想在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) {
}
}
}];
Run Code Online (Sandbox Code Playgroud)
我想知道如何检索帐户的名称和姓氏以及用户的图片......任何人都可以帮助我吗?
杰弗里是对的.转到这篇文章:Facebook iOS 6 - 获取用户信息并实现Daniel提供的两种方法.
之后,请确保在您的应用程序设置中进行一些更改facebook developer account.
sandbox modebundle idEnable Facebook登入然后转到Advance左侧的设置
Native/Desktop为App TypeApp secret in client是NO保存所有设置,填充服务器上的更改确实需要几分钟.最后Must reset you simulator
| 归档时间: |
|
| 查看次数: |
4427 次 |
| 最近记录: |