Hi @Felipe Borges ,
Thanks for reaching out.
I understand you are trying to authenticate the Facebook or Microsoft account user in Azure AD/Microsoft Entra and getting the invalid request error.
As per the screenshot you mentioned, you are calling the tenant specific endpoint which allows you authenticate users in your organization only.
To authenticate Microsoft users, you need to register your application as "Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)"
which will allow you to authenticate user from your organizations and Microsoft accounts as well.
With a multi-tenant application, as the application can't immediately tell which tenant the user is from, requests can't be sent to a tenant’s endpoint. Instead, requests are sent to an endpoint that multiplexes across all Azure AD tenants: https://login.microsoftonline.com/common/oauth2/v2.0/token
Reference - https://learn.microsoft.com/en-us/azure/active-directory/develop/howto-convert-app-to-be-multi-tenant
To authenticate the users from Facebook, you need to add Facebook as identity provider.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.