を使用してFacebookを利用してアクセスするとき、私はこの1つ上のいくつかの助けが必要です....リミット権限アカウントフレームワーク
だから私は直面しています問題は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" を、必要としています
。アラートには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番目の文があるのですか?どのように私はそれを取り除くのですか?私は基本的なプロフィールと友人のリストについて語る第二の行が現れないいくつかのアプリを見ることができます。
期待される結果:
APP_NAME would like to access your profile and likes.
更新:
ソリューションのための私の答えをチェックしてください。
完了ブロックで実行しているアカウントまたはソーシャルアクションで質問を更新してください。 – quellish