Meteor facebook login redirect doesn't work

88 Views Asked by At

i'm using angular2 with meteor.

ServiceConfiguration.configurations.insert({
    service: "facebook",
    appId: 'myappID',
    loginStyle: "redirect",
    secret: 'mysecret',
    redirectUrl: 'http://localhost:3000/landing'
});

after logging in it always goes back to the home page. (localhost:3000)

my router code:

export const routes: Route[] = [
   { path: '', component: PartiesListComponent },
   { path: 'login', component: LoginComponent },
   { path: 'profile', component: ProfileComponent },
   { path: 'landing', component: LandingComponent }
    .....
0

There are 0 best solutions below