passport.js - Better quality photo from passport-facebook -
how 1 better quality picture passport-facebook
, picture recieve in photos[0].value
50x50 pretty poor, wish atleast 150x150.i trying mess link - no luck. possible retrieve better quality profile picture?
edit: current fb strategy setup:
passport.use(new facebookstrategy({ clientid: 'xxxxxx', clientsecret: 'xxxxx', callbackurl: 'http://localhost:4242/facebook/cb', profilefields: ['id', 'name', 'displayname', 'photos', 'hometown', 'profileurl'], passreqtocallback: true }, ...
you should able specify profilefields
property described in
like following retrieve larger picture:
passport.use(new facebookstrategy({ // clientid, clientsecret , callbackurl profilefields: ['id', 'displayname', 'picture.type(large)', ...] }, // verify callback ... ));
or change strategy.js
file of passport-facebook
module @ line 221
'photos': 'picture.type(large)'
see