Gus*_*lad 15 facebook ios ios6
我收到此错误:
Error Domain = com.apple.accounts Code = 7"Facebook服务器无法满足此访问请求:代理的应用程序尚未安装." UserInfo = 0x114a7440 {NSLocalizedDescription = Facebook服务器无法满足此访问请求:代理应用程序尚未安装.}
我正在使用此代码来访问:
ACAccountStore *accountStore = [[ACAccountStore alloc] init];
ACAccountType *accountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
[accountStore requestAccessToAccountsWithType:accountType options:[[NSDictionary alloc] initWithObjectsAndKeys:
@"MY APP ID", ACFacebookAppIdKey,
nil, ACFacebookPermissionsKey,
nil] completion:^(BOOL granted, NSError *error) {
if (granted == YES) {
//My code
} else {
NSLog(@"No Facebook access: %@", error.debugDescription);
}
}];
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
| 归档时间: |
|
| 查看次数: |
1995 次 |
| 最近记录: |