hi,
i noticed that the
“profile” : {
“name” : “[]”
doens’t appear when creating new users. its appeared before but no longer.
i use
accounts-ui@1.1.9
accounts-facebook@1.2.1
facebook-config-ui@1.0.0
packages for creating a new user account, plus the on create user function to insert his details into an index collection:
Accounts.onCreateUser((options, user) => {
if (! user.services.facebook) {
throw new Error('Expected login with Facebook only.');
}
const userId = user._id;
const fId = user.services.facebook.id;
UsersMap.insert({facebookId: fId, meteorId: userId});
return user;
});
also - here are the settings for the accounts.ui
Accounts.ui.config({
requestPermissions: {
facebook: ['email', 'public_profile', 'user_friends'],
}
});
anybody knows why it doesnt appear anymore?
the name does appear inside the facebook object
thanks!