Just wondering if it's possible to disable users from logging in with their email using the new Facebook Account Kit SDK. To be clear, I only want them to be able to login via Facebook or Phone # (but not email). I tried going through the docs, but haven't found an answer yet.
It appears that Account Kit isn't tied to a specific Facebook account, so a user signs up with their phone number or their email account, not their Facebook account. From the Account Kit overview:
Using email and phone number authentication doesn't require a Facebook account, and is the ideal alternative to a social login.
You could only include the phone number login from Account Kit and then add in a separate social login for Facebook to achieve what you are trying to do.
You can specify which kind of Account Kit login screen, either email or phone, you want your app to display using the AccountKitConfigurationBuilder
first parameter as shown in the Account Kit documentation .
I'm going to copy the example from the link to explain a little bit how is it done:
int APP_REQUEST_CODE = 90;
Intent intent = new Intent(getActivity(), AccountKitActivity.class);
AccountKitConfiguration.AccountKitConfigurationBuilder configurationBuilder =
new AccountKitConfiguration.AccountKitConfigurationBuilder(
LoginType.PHONE, // or LoginType.EMAIL if you want to use email validation
AccountKitActivity.ResponseType.CODE); // or .ResponseType.TOKEN
// ... perform additional configuration ...
intent.putExtra(
AccountKitActivity.ACCOUNT_KIT_ACTIVITY_CONFIGURATION,
configurationBuilder.build());
startActivityForResult(intent, APP_REQUEST_CODE);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.