I'm building a web app with MEANjs and I'm having some trouble with the Oauth callbacks for Facebook, Twitter, and Google+ (lnkedin works fine). Basically everything works, but the callback gives me 'Page Not Found' Error: /api/auth/facebook/[object%20Object] is not a valid path.
If i navigate to another page, I find that I am logged in. The routes seem to be correct, as generated by MEANjs
app.route('/api/auth/facebook').get(users.oauthCall('facebook', {
scope: ['email']
}));
app.route('/api/auth/facebook/callback').get(users.oauthCallback('facebook'));
I've checked the callbacks in the facebook app setup and they're fine. Totally stumped. Would love any help or advice.
Thanks.