Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook authorization doesn't generate the accessToken with read permissions #227

Open
softdev999 opened this issue Sep 26, 2018 · 0 comments

Comments

@softdev999
Copy link

softdev999 commented Sep 26, 2018

Hi, there,

I have an issue related to Facebook Login.

The login was done successfully, but after logging in, it doesn't return email.

Here's what I did.
...
manager.authorize('facebook', {scopes: 'email'})
.then(resp => { console.log(resp);
this.getFacebookData(); })
.catch(err => console.log(err))
...
getFacebookData = () => {
manager.makeRequest('facebook', '/me?fields=name,first_name,last_name,email')
.then(resp => {
console.log('Data->', resp.data)
})
}

But the response doesn't return email, it only gives me only the name, first_name, last_name.
I tried this login with 3 different fb users and I noticed this is absolutely not a specific user-related privacy issue.

I also tested this app ID using Facebook Graph API Explorer, but it works very well there.
This means the fb app ID configuration is also fine.

How can we add readPermissions when we authorize facebook?

manager.authorize('facebook', {scopes: 'email'})

Is this working?

I think the SDK currently generate the access_token without read_permissions for email.

How can we put read permissions to facebook authorization?

Would you please fix this as we need this urgently?

Hope your kindly support.
Thank you

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

No branches or pull requests

1 participant