Get Twitter Full Name and Email

196 views
Skip to first unread message

Albert Stephan

unread,
Apr 5, 2014, 12:55:55 AM4/5/14
to meteo...@googlegroups.com
Meteor accounts gets the full name and email of the user when they log in with Facebook, but it only gets the screen name when the user logs in with Twitter. Is there a way to get the full information or do I have to manually request it with a separate API?

Thanks,
Albert

David Burles

unread,
Apr 5, 2014, 2:15:30 AM4/5/14
to meteo...@googlegroups.com
Hi Albert, 

From memory twitter does not provide any way to get the users email address


Dave

Chanpory Rith

unread,
Apr 5, 2014, 10:41:47 AM4/5/14
to meteo...@googlegroups.com
David is correct, you can't get email addresses from Twitter API.


--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Albert Stephan

unread,
Apr 5, 2014, 10:49:26 AM4/5/14
to meteo...@googlegroups.com
But how about full name? I've logged into sites with Twitter and they got my full name. Does Meteor accounts not pull that info?

Chanpory Rith

unread,
Apr 5, 2014, 11:09:48 AM4/5/14
to meteo...@googlegroups.com
I believe when you sign in with Twitter in Meteor, the full name get's automatically added to the profile property of the user object. Is this not happening?


On Sat, Apr 5, 2014 at 10:49 AM, Albert Stephan <alst...@gmail.com> wrote:
But how about full name? I've logged into sites with Twitter and they got my full name. Does Meteor accounts not pull that info?

Chanpory Rith

unread,
Apr 5, 2014, 11:14:42 AM4/5/14
to meteo...@googlegroups.com
Also, make sure you are using the accounts-twitter package.

Albert Stephan

unread,
Apr 5, 2014, 3:20:22 PM4/5/14
to meteo...@googlegroups.com
It does indeed, thanks for your help. I was overriding that behavior by running a custom Accounts.onCreateUser function.


The default create user function simply copies options.profile into the new user document. Calling onCreateUser overrides the default hook. This can only be called once.

Albert
Reply all
Reply to author
Forward
0 new messages