I deployed the application for Heroku , however, as soon as you click "login with facebook", you are redirected to http: // localhost: 3000 / # = . I tried the following (the first one where it is now):
passport.use(new FacebookStrategy({ clientID: FACEBOOK_APP_ID, clientSecret: FACEBOOK_APP_SECRET, callbackURL: "http://localhost:3000/auth/facebook/callback" }, function(accessToken, refreshToken, profile, done) { process.nextTick(function () { return done(null, profile); }); } ));
but when deployed with:
passport.use(new FacebookStrategy({ clientID: FACEBOOK_APP_ID, clientSecret: FACEBOOK_APP_SECRET, callbackURL: "/auth/facebook/callback" },
or
passport.use(new FacebookStrategy({ clientID: FACEBOOK_APP_ID, clientSecret: FACEBOOK_APP_SECRET, callbackURL: "https://fivemincatchup.herokuapp.com/auth/facebook/callback" },
it sends the following error to facebook:
This URL is not allowed by the application configuration: one or application parameter settings are not allowed. This should match the website URL or canvas URL, or the domain should be a subdomain of one of the application domains.
Am I missing something really obvious ?!
source share