How to get email address by login with twitter? in passport.js

nodejs
node

#1

As the day before its returning email addtress by checks “Request email addresses from users” in permission tab of app.twitter.com, after adding userProfileURL: “https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true” in passport.js twitter strateggy. but todays is not returns, why?


#3

I follow the every steps of above link. But I had made changes in application name after doing above steps.
So the same process as mentioned in above link and then after not changes in your application then sure works.

also add the userProfileURL field in passport twitter strateggy as bellow:

passport.use(new TwitterStrategy({
consumerKey : config_node_env.twitterAuth.consumerKey,
consumerSecret : config_node_env.twitterAuth.consumerSecret,
callbackURL : config_node_env.twitterAuth.callbackURL,
passReqToCallback: true,
userProfileURL: "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true",
},
function(req, token, tokenSecret, profile, done) {
console.log(' twitter profile------------------------------')

.
. so on


#4

Sorry, I’m not quite understanding your post. Are you having a problem here? Or is it resolved now?