Mongodb Meteor:从帐户Twitter Mongo集合获取数据

Mongodb Meteor:从帐户Twitter Mongo集合获取数据,mongodb,twitter,meteor,user-accounts,Mongodb,Twitter,Meteor,User Accounts,我正在尝试显示来自帐户twitter包的一些数据。我需要用户的个人资料图片,用户名和名称,所有从Twitter。我已经用meteor mongo检查过了,看看这些数据在那里。Profile.html是我为以下内容存储模板的位置: <template name="profile"> <div class="col s4"> <div class="z-depth-2"> <div class="card blue-grey da

我正在尝试显示来自帐户twitter包的一些数据。我需要用户的个人资料图片,用户名和名称,所有从Twitter。我已经用meteor mongo检查过了,看看这些数据在那里。Profile.html是我为以下内容存储模板的位置:

<template name="profile">
    <div class="col s4">
    <div class="z-depth-2">
      <div class="card blue-grey darken-1">
        <div class="card-content white-text">
          <img class="circle-profile center-align" src="{{services.twitter.profile_image_url}}" style="border-radius: 50%" width="50px" height="50px"/>
          <br>
          <span class="card-title">{{profile.name}}</span>
        </div>
        <div class="card-action">
          <a href="http://twitter.com/{{services.twitter.screenName}}">View Profile</a>
        </div>
      </div>
    </div>
    </div>
</template>

<template name="display">
  {{#each users}}
    {{> profile}}
  {{/each}}
</template>
当我查看我的主要区域时,收藏中的配置文件没有显示出来。请告知。提前谢谢

配置文件在默认情况下发布,并且仅可由当前用户更新。存储Twitter信息的服务并不是因为这将是一个安全问题,因为它包含身份验证令牌。最好的方法可能是在onCreateUser方法中将这些值复制到概要文件中,以便发布它们


您也可以只发布服务中需要的字段,但我个人喜欢将其分开,因为它包含敏感信息。

谢谢!我只是发布了我从Twitter上需要的个人资料图像、用户名和姓名字段。
Template.display.helpers({
  users: function() {
    return Mongo.users.find();
  }
});