Skip to content

Removing the email from the scope for Facebook#266

Merged
overtrue merged 1 commit intoovertrue:4.xfrom
woei66:4.x
Sep 1, 2023
Merged

Removing the email from the scope for Facebook#266
overtrue merged 1 commit intoovertrue:4.xfrom
woei66:4.x

Conversation

@woei66
Copy link
Contributor

@woei66 woei66 commented Sep 1, 2023

The email permission is not provided by default in Facebook apps.
Therefore, we should not assign "email" in the scope.
If we assing "email" field in the scope, the email will be added to the authorize url and it will fail if devlopers don't request email permission for their Facebook apps.

I provided the return url when I try the Facebook login.

https://www.facebook.com/v3.3/dialog/oauth?client_id=xxxxxx&redirect_uri=https%3A%2F%2Fxxx.xxx%2Fcallback.php&scope=email&response_type=code

You can see that there is a extra parameter "scope=email" is added in the url and it will cause the failure for Facebook login.

@overtrue overtrue merged commit 6df7695 into overtrue:4.x Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants