jaredhanson / passport-facebook

Facebook authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-facebook/?utm_source=github&utm_medium=referral&utm_campaign=passport-facebook&utm_content=about
MIT License
1.29k stars 447 forks source link

Unable to ask for additional permissions #211

Open seanlayton opened 7 years ago

seanlayton commented 7 years ago

I'm trying to get the email as well as some additional user data but no matter what I seem to do, it only prompts the user to provide their public profile and nothing else. I feel I'm using the correct syntax all around. I created a simple JS login just to test things out and was able to prompt for the email field quite easily so I'm not sure what the problem is here as it appears others have had success using the same code.

passport.authenticate('facebook', {scope: ['public_profile', 'email'] }));

passport.use(new FacebookStrategy({ clientID: config.facebook_api_key, clientSecret:config.facebook_api_secret , callbackURL: config.callback_url, profileFields: ['id', 'first_name','last_name','emails'], enableProof: true