在流星的创建用户中看不到额外的Facebook权限 [英] Cannot see extra Facebook permissions in created user in Meteor

查看:131
本文介绍了在流星的创建用户中看不到额外的Facebook权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Meteor开发一个应用程序,并通过以下代码向Facebook寻求额外的权限。

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'
});

我作为管理员允许发布这些权限,但是当用户创建时,这些权限不要添加到Meteor.user。

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?

谢谢

推荐答案

根据这个


在客户端,这将是字段的子集从服务器发布的文档(其他字段在客户端上不可用)。默认情况下,服务器发布用户名,电子邮件和配置文件(用户可写)。有关用户文档中使用的字段的更多信息,请参阅Meteor.users。

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

这篇关于在流星的创建用户中看不到额外的Facebook权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆