0

Facebook SDK 3.14 を使用しており、ユーザーにpublic profile, email, user_photos permissions. ログインにメールを使用しています。ユーザーがログイン中にメールを拒否した場合、返信を求める方法はありません。しかし、AirbnbZomatoなどのアプリが、必要なすべての権限がユーザーによって与えられない限り、ユーザーを権限ページに戻すのを見てきました。

ログイン プロセス中に付与されなかったアクセス許可をユーザーに再要求する方法はありますか。

許可を要求するために以下のコードを使用しています

        [FBSession openActiveSessionWithReadPermissions:@[@"public_profile",@"email",@"user_friends",@"user_photos"]
                                       allowLoginUI:YES
                                  completionHandler:
     ^(FBSession *session, FBSessionState state, NSError *error) {

         // Retrieve the app delegate


         if(error.code ==2 && [errorReason isEqualToString:@"com.facebook.sdk:UserLoginCancelled"]){
             [facebookWebobj performSelector:@selector(hideAnimatedLoader) withObject:nil afterDelay:0.5];
         }
         else
         {
         // get email id and login the user
         }

     }];
4

0 に答える 0