问题
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 }
.....
来源:https://stackoverflow.com/questions/42741946/meteor-facebook-login-redirect-doesnt-work