##Situation
I’ve got a basic OAuth login with Facebook.
My click event for this is fairly simple:
Template.account_form_login.events({
'click .account_login_facebook':function(event){
Meteor.loginWithFacebook({requestPermissions: [ 'email' ]}, function(err){
if(!err) {
Router.go('/');
}
});
event.preventDefault();
}
});
Problem
The {requestPermissions: [ 'email' ]}
works as expected.
But the Users email is never added to the user.profile, so I don’t have access to it later.
Main Question:
How can I attach the email to the profile?
Extra Question:
I’m also a little bit confused by the Guide on the Meteor.users collection.
When I login with either email or facebook my user object looks very different.
In the guide the user object has many more fields.
After Login with facebook:
Thanks for any kind of help!