Hello,
I am using Meteor.loginWithFacebook and it works great.
I wonder how can I update users data pulling the latest changes from facebook?
I mean how I reflect the changes the users do on his facebook account on the meteor app I am coding.
Thanks.
Template.Layout_public.events({
'click a.js-facebook-login, click a.js-facebook-register'(event, instance) {
const options = { requestPermissions: ['email'] };
Meteor.loginWithFacebook(options, (error) => {
if (error) {
console.log(error);
return;
}
if (FlowRouter.current().route.name!='practice') {
FlowRouter.go('practice');
} else {
window.location.reload(true);
}
});
}
});