There is no Metadata item similar to setting.showSignupLink that we can use to hide the IDP selection button. All supported metadata items are listed here: https://learn.microsoft.com/en-us/azure/active-directory-b2c/self-asserted-technical-profile#metadata
If you comment out ClaimsProviderSelection, e.g. < ClaimsProviderSelection TargetClaimsExchangeId="FacebookExchange" / >, no further orchestration steps will be executed for Facebook.
What you can do in your case is, create two SignUpOrSignIn Journeys in the TrustFrameworkExtensions file. For example,
- Create a user journey for social IDPs in your Extensions file, like < UserJourney Id="SignUpOrSignInSocial" > and copy orchestration steps from SocialAccounts starter pack. You would need to modify the orchestration steps based on the IDPs that you have added to your policies.
- Create another user journey for local accounts in your Extensions file, like < UserJourney Id="SignUpOrSignInLocal" > and copy orchestration steps from LocalAccounts starter pack.
Once this is done, you need to create two RP files with PolicyId="B2C_1A_signup_signin_social" and "B2C_1A_signup_signin_local". Under the < RelyingParty > tag in both file, you need to update the DefaultUserJourney ReferenceId to "SignUpOrSignInSocial" and "SignUpOrSignInLocal" resepctively.
Now, when you will run the user flow using B2C_1A_signup_signin_local, you will not see any social/federated IDP and with B2C_1A_signup_signin_social, you will only see social IDPs, not the local account signup/signin option. You can then use domain_hint parameter with B2C_1A_signup_signin_social to directly get redirected to the IDP's authentication page and for local users to signup/signin, you can use B2C_1A_signup_signin_local.
-----------------------------------------------------------------------------------------------------------
Please "Accept as answer" wherever the information provided helps you to help others in the community.