删除自动发布后,如何读取 Meter.user().services?

After removing autopublish, how do I read Meter.user().services?

在我从我的项目中删除自动发布包之前 meteor remove autopublish, 我能够读取登录用户正在使用的 oAuth 服务,例如
var facebookSignIn = Meteor.user().services.facebook;

var googleSignIn = Meteor.user().services.google;

之所以这很重要,是因为我会使用此 googleSignInfacebookSignIn 信息来确定如何保存登录用户的个人详细信息,例如他们的姓名、电子邮件、和头像。
在代码中:

var facebookSignIn = Meteor.user().services.facebook;
var googleSignIn = Meteor.user().services.google;
var ownderId = Meteor.user()._id;

if (facebookSignIn) {
        console.log("Its a Facebook Account Sign in!");
        var userName = Meteor.user().services.facebook.name;
        var emailAdress =  Meteor.user().services.facebook.email;
        var facebookProfilePic = "http://graph.facebook.com/" + user.services.facebook.id + "/picture/?type=large"; 
    }
else if (googleSignIn) {
        console.log("Its a Google Account Sign in!");
        var userName = Meteor.user().services.google.name;
        var emailAdress =  Meteor.user().services.google.email;
        var googleProfilePic = Meteor.user().services.google.picture;

    }
else {  
        console.log("Your not Signed in!");
    }

既然我已经删除了自动发布包,我该如何检索 Meteor.user().services.facebookMeteor.user().services.google

在浏览器控制台(main.js:1140)中,出现这个错误信息:

Uncaught TypeError: Cannot read property 'facebook' of undefined 

main.js:1140 中的代码是:

var facebookSignIn = Meteor.user().services.facebook;

您必须先从服务器发布集合,以便客户端可以使用该集合(而客户端必须订阅已发布的集合)

Meteor.publish("userPublication", function publishFunction(){ 
       return Meteor.users.find(); })