Skip to content

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

Open
@softdev999

Description

@softdev999

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions