Facebook错误(7)iOS 6

时间:2012-09-19 16:29:23

标签: ios facebook ios6

我收到此错误:

  

错误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);
    }
}];

我该如何解决?

0 个答案:

没有答案