问题
I am developing an App with Meteor and asking for extra permissions from Facebook with the following code...
Accounts.ui.config({
requestPermissions: {
facebook: ['user_likes', 'user_education_history', 'user_hometown', 'user_location', 'user_website', 'user_work_history']
},
passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'
});
I as an Admin is allowing for those permissions to be published but when the user is created, these permissions do not get added to the Meteor.user.
Is there something extra I need to do to add them to the DB?
Thanks
回答1:
According to this
On the client, this will be the subset of the fields in the document that are published from the server (other fields won't be available on the client). By default the server publishes username, emails, and profile (writable by user). See Meteor.users for more on the fields used in user documents.
Meaning you need to create publish to return extra fields to client
来源:https://stackoverflow.com/questions/32244778/cannot-see-extra-facebook-permissions-in-created-user-in-meteor