【发布时间】:2012-09-12 00:19:25
【问题描述】:
虽然,有这样一个问题Facebook Error (7) iOS 6 已经关闭,没有任何答案!
在访问用户的 facebook 帐户时,我遇到了一个错误:
error is: Error Domain=com.apple.accounts Code=7 "The Facebook server could not fulfill this access request: The proxied app is not already installed." UserInfo=0xa260270 {NSLocalizedDescription=The Facebook server could not fulfill this access request: The proxied app is not already installed.}
我正在执行这样的请求:
self.statusLabel.text = @"Waiting for authorization...";
if (self.accountStore == nil) {
self.accountStore = [[ACAccountStore alloc] init];
}
ACAccountType * facebookAccountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
NSDictionary * dict = @{ACFacebookAppIdKey : FB_APP_ID, ACFacebookAudienceKey : ACFacebookAudienceEveryone};
[self.accountStore requestAccessToAccountsWithType:facebookAccountType options:dict completion:^(BOOL granted, NSError *error) {
__block NSString * statusText = nil;
if (granted) {
statusText = @"Logged in";
NSArray * accounts = [self.accountStore accountsWithAccountType:facebookAccountType];
self.facebookAccount = [accounts lastObject];
NSLog(@"account is: %@", self.facebookAccount);
self.statusLabel.text = statusText;
[self postToFeed];
}
else {
self.statusLabel.text = @"Login failed";
NSLog(@"error is: %@", error);
}
}];
这个错误是什么意思?
【问题讨论】:
-
你能告诉 self.facebookAccount 是哪种类型.. 我必须如何声明@Stas
-
当然,
facebookAccount的类型是ACAccount,你可以这样声明:@property (strong, nonatomic) ACAccount * facebookAccount; -
好的,谢谢。现在我收到此错误 Facebook 服务器无法满足此访问请求:代理应用程序无法请求发布权限,而无需事先安装。 @斯塔斯
-
看看这个 q-a,这里是关于如何调整你的 fb 应用程序的完整指南facebook.stackoverflow.com/questions/12644229/…
-
查看我对类似问题的帖子的回复 - stackoverflow.com/questions/12686277/…
标签: iphone objective-c facebook ios6