Search code examples
androidfacebookaccount-kitfacebook-account-kit

Facebook account kit verification not working properly


I have implemented Facebook Account Kit for mobile verification. I called account kit activity like-

Intent intent = new Intent(SignUpActivity.this, AccountKitActivity.class);
AccountKitConfiguration.AccountKitConfigurationBuilder configurationBuilder =
    new AccountKitConfiguration.AccountKitConfigurationBuilder(
        LoginType.PHONE,
        AccountKitActivity.ResponseType.TOKEN);

// ... perform additional configuration ...
configurationBuilder.setReadPhoneStateEnabled(true);
configurationBuilder.setReceiveSMS(true);
intent.putExtra(
    AccountKitActivity.ACCOUNT_KIT_ACTIVITY_CONFIGURATION,
    configurationBuilder.build());
startActivityForResult(intent, APP_REQUEST_CODE);

Required permissions are granted before going to AccountKitActivity if android OS is above Lollipop.

It reads mobile number then when I click "next" button, it is showing attached image (screenshot) only though I am receiving code SMS from account kit. Why this is happening and how to get rid of this?


Solution

  • There was a problem in panel settings. "Require App Secret" option should remain turned off.