I'm doing a project using Meteor. People can log in with Twitter. I was wondering if there was a way to get someones profile picture from Twitter in the Accounts.onCreateUser. Here's what I have in mine :
Accounts.onCreateUser(function(options, user) {
var twitterInfo = user.services.twitter;
if (options.profile){
options.profile.createdAt = new Date();//now!
options.profile.twitterId = twitterInfo.id;
options.profile.username = twitterInfo.screenName;
options.profile.name = options.profile.name;
user.profile = options.profile;
}
return user;
});
Thanks!