gpt4 book ai didi

iphone - iOS 6 - Facebook 共享程序失败并出现错误 "The proxied app is not already installed"

转载 作者:太空狗 更新时间:2023-10-30 03:11:58 28 4
gpt4 key购买 nike

虽然,有这么一个问题Facebook Error (7) iOS 6它已经关闭,没有任何答案!在获取用户 Facebook 帐户的访问权限时出现错误:错误是:Error Domain=com.apple.accounts Code=7 “Facebook 服务器无法满足此访问请求:尚未安装代理应用程序。” UserInfo=0xa260270 {NSLocalizedDescription=Facebook 服务器无法完成此访问请求:代理应用尚未安装。}

我正在执行这样的请求:

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

这个错误是什么意思?

最佳答案

我已经解决了这个问题!那是因为我没有传递权限数组!尽管 ACAccountStore 类声明此参数是可选的,但事实并非如此! enter image description here

更多关于应用程序可以启动并请求基本权限(正如它所暗示的那样)!

enter image description here

因此,您必须始终传递权限数组。

这里还有对帐户存储返回的错误代码的描述:

typedef enum ACErrorCode {
ACErrorUnknown = 1,
ACErrorAccountMissingRequiredProperty,
ACErrorAccountAuthenticationFailed,
ACErrorAccountTypeInvalid,
ACErrorAccountAlreadyExists,
ACErrorAccountNotFound,
ACErrorPermissionDenied,
ACErrorAccessInfoInvalid
} ACErrorCode;

(我这里有ACErrorPermissionDenied)

关于iphone - iOS 6 - Facebook 共享程序失败并出现错误 "The proxied app is not already installed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12686277/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com