我在这方面需要一些帮助....
所以我面临的问题是,在从 ACAccount 获取 Facebook 帐户时,警报视图通知了太多权限。当我使用 Facebook 的 ACAccount 登录时,我收到一个警告框。
它说APP_NAME would like to access your basic profile info and list of friends
即使我的权限集是一个空数组,这也会显示出来。
NSArray * FB_PERMISSIONS = @[];
// or FB_PERMISSIONS = @[@"public_profile", @"likes", @"email"];
// It does not matter what the array is -> The alert has extra sentences.
ACAccountType *FBaccountType= [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook];
NSString *key = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"FacebookAppID"];;
NSDictionary *dictFB = [NSDictionary dictionaryWithObjectsAndKeys:key,ACFacebookAppIdKey,FB_PERMISSIONS,ACFacebookPermissionsKey, nil];
[_accountStore requestAccessToAccountsWithType:FBaccountType options:dictFB completion:
我想在这里做什么?
我只需要“ public_profile ”、@“ email ”和“ likes ”。警报说APP_NAME would like to access your profile, and likes on your behalf. In addition, APP_NAME would like to access your basic profile info and list of friends
为什么那里有第二句话?我该如何摆脱它?我可以看到许多应用程序的第二行没有显示关于基本个人资料和朋友列表的内容。
预期结果:
APP_NAME would like to access your profile and likes.
更新:
检查我的答案以获得解决方案。