Birth_date, location and phone missing from /userinfo

Hi, I am using Universal SSO Login with Google, Facebook and Apple.

I have used the scope as below in React.js and I am unable to get birth_date, address, and phone. While I see in the URL of Auth0 and while logging In that from Facebook user allowed Auth0 to have details. For google, open id doesn’t provide data like birth_date, address and phone - so no problem about that if its google’s policy. But, it isn’t providing data in Facebook as well. I am using /userinfo to get details of a user, but no luck. I want address, phone and date of birth.

<Auth0Provider
domain={auth0Domain}
clientId={auth0ClientId}
redirectUri={originUrl}
authorizationParams={{
redirect_uri: window.location.origin,
audience: https://${auth0Domain}/api/v2/,
scope: “openid profile email address phone”
}}
>

Is it possible that data is not allowed to be given in Sandbox and allowed in Staging or Production?

Hey there @muhammad.anas welcome to the community!

This could be the case, but I am not positive - Are you using Auth0 developer keys or your own when configuring the Facebook social connection? Further to that, I assume you have the “Birthday”, “Location” etc. values check under User Data in the connection settings in Auth0 dashboard?

Hi tyf, Really Thanks for your response!

I just checked values(they were tick-marked) for Google, Facebook, and Apple in the Auth0 Dashboard. But, it isn’t giving the allowed data. It does not give birth date, phone, and location. And I am using Auth0 dev keys.

Can you please infer the issue, or is it a limitation that such data isn’t available?

<Auth0Provider
domain={auth0Domain}
clientId={auth0ClientId}
redirectUri={originUrl}
authorizationParams={{
redirect_uri: window.location.origin,
audience: https://${auth0Domain}/api/v2/ ,
scope: “openid profile email address phone”
}}