Facebook login callback in Meteor not invoked for a long time


#1

I have code like:

Template.loginTemplate.events({
	"click .loginFB": function(event, instance) {
		Meteor.loginWithFacebook({}, loginFBCallback);
	},
)}

...

function loginFBCallback(error, response) {
	// Do some stuff post success or failure
}

I check the db and the the user gets created almost instantly on clicking the .loginFB button, but the loginFBCallback gets called around 10-15 minutes later. In this callback at times I get a successful response, but sometimes I get the error:

Accounts.LoginCancelledError: No matching login attempt found

Why does it take so much time for the login to complete and the callback to get invoked?


#2

@abhishekbatra, did you find a solution? We are having exactly the same issue :confused: