私はこれについていくつかの助けが必要です....
したがって、私が直面している問題は、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
なぜその2番目の文があるのですか?どうすればそれを取り除くことができますか?基本的なプロフィールと友達のリストに関する 2 行目が表示されないアプリがいくつかあります。
期待される結果:
APP_NAME would like to access your profile and likes.
アップデート:
解決策については私の答えを確認してください。