Cannot see extra Facebook permissions in created user in Meteor

孤街浪徒 提交于 2019-12-08 10:00:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!