You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice work, thank you for the fork from passport-facebook!
There is one issue I found related to the field names Facebook has changed over the time.
There is the following code in lib/strategy.js which attempts to fill in some user variables:
the outdated code gets called, and Facebook comes back with the message below:
FacebookGraphAPIError: (jaredhanson#12) username field is deprecated for versions v2.0 and higher
at /home/ubuntu/expresslogin/node_modules/@passport-next/passport-facebook/lib/strategy.js:168:21
at passBackControl (/home/ubuntu/expresslogin/node_modules/oauth/lib/oauth2.js:132:9)
at IncomingMessage. (/home/ubuntu/expresslogin/node_modules/oauth/lib/oauth2.js:157:7)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Just letting you know. If the fields are not called up, everything is ok, like this:
Nice work, thank you for the fork from passport-facebook!
There is one issue I found related to the field names Facebook has changed over the time.
There is the following code in lib/strategy.js which attempts to fill in some user variables:
When I use profileFields in the FacebookStrategy, like this:
the outdated code gets called, and Facebook comes back with the message below:
Just letting you know. If the fields are not called up, everything is ok, like this:
passport.use(new FacebookStrategy({
clientID: config.facebook_api_key,
clientSecret:config.facebook_api_secret ,
callbackURL: config.callback_url,
graphApiVersion: 'v3.1'
},
And the app can grab these fields directly from Facebook using another library.
The text was updated successfully, but these errors were encountered: