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.
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