I use Meteor.loginWithFacebook to give users access to my application. The code
Meteor.loginWithFacebook({
loginStyle:"redirect"
}, function(err){
if (err) {
throw err;
}
else{
window.location = "/landing"
}
});
My server has accounts.js with the following:
ServiceConfiguration.configurations.remove({
service: "facebook"
});
ServiceConfiguration.configurations.insert({
service: "facebook",
appId: "id",
secret: "secret"
});
It works on the desktop and worked when it is connected to the cord, but suddenly it does not work and presents me with an error that the login service has not yet been configured.
Unprepared error: ServiceConfiguration.ConfigError: Login service configuration not yet loaded: 2199: http: //meteor.local/packages/blaze.js
I constantly see Accounts.loginServicesConfigured () , but I don’t see what is explained in the docs and therefore does not know how to use it.
Any help?
source
share