Ok, so far I've got it to work using passport-facebook-token and changing julian's sso-facebook plugin:
FacebookTokenStrategy = require('passport-facebook-token'),
and changing:
passport.use(new passportFacebook({
to
passport.use(new FacebookTokenStrategy({
Also:
strategies.push({
name: 'facebook',
url: '/auth/facebook',
callbackURL: '/auth/facebook/callback',
icon: constants.admin.icon,
scope: 'email, user_friends'
});
to
strategies.push({
name: 'facebook-token',
url: '/auth/token',
callbackURL: '/auth/token/callback',
icon: constants.admin.icon,
scope: 'email, user_friends'
});
I'm able to log into my account but I get this error:
[image: bERDTxx.png]
Why is the route not found?