Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upGet the user's e-mail address from Twitter #765
Comments
Tratcher
added
the
enhancement
label
Apr 4, 2016
This comment has been minimized.
This comment has been minimized.
|
Eilon
added this to the 1.0.0 milestone
Apr 7, 2016
Eilon
added
the
1 - Ready
label
Apr 7, 2016
Eilon
assigned
Tratcher
Apr 7, 2016
This comment has been minimized.
This comment has been minimized.
|
Let's add a specific option to the Twitter Options to enable grabbing the email. |
Tratcher
added
2 - Working
and removed
1 - Ready
labels
Apr 27, 2016
added a commit
that referenced
this issue
Apr 27, 2016
added a commit
that referenced
this issue
Apr 27, 2016
added a commit
that referenced
this issue
Apr 28, 2016
added a commit
that referenced
this issue
Apr 28, 2016
Tratcher
added
3 - Done
and removed
2 - Working
labels
Apr 28, 2016
Tratcher
closed this
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
danielserafimovik
commented
May 19, 2016
|
you have to change your code to call the GET account/verify_credentials method after the user is logged in with twitter. And it is important to set the parameter include_email to true. When this is set to true email will be returned in the user objects as a string. I'm using this library https://www.nuget.org/packages/linqtotwitter so that I do not have to write code for handling twitter api requests var twitterCtx = new TwitterContext(authTwitter); var verifyResponse = await (from acct in twitterCtx.Account where (acct.Type == AccountType.VerifyCredentials) && (acct.IncludeEmail == true) select acct) .SingleOrDefaultAsync(); see how I have done this here http://www.bigbrainintelligence.com/Post/get-users-email-address-from-twitter-oauth-ap it is an easy and clean solution |
This comment has been minimized.
This comment has been minimized.
AlexOliinyk1
commented
Sep 3, 2017
•
|
Backchannel - can't resolve symbol. Any idea ? |
This comment has been minimized.
This comment has been minimized.
|
@AlexOliinyk1, @danielserafimovik's advice no longer applies, you can set the RetrieveUserDetails property to handle this now. |
This comment has been minimized.
This comment has been minimized.
AlexOliinyk1
commented
Sep 3, 2017
•
|
@Tratcher thank you for quick update. But after enable I still can't to get email. http://prntscr.com/ggnq1m |
This comment has been minimized.
This comment has been minimized.
|
Did you follow these instructions? The only way to enable it is to contact Twitter support. |
This comment has been minimized.
This comment has been minimized.
AlexOliinyk1
commented
Sep 3, 2017
•
|
@Tratcher code look like this It is looks like it something wrong on the server side, but on the server side it is getting all data, except email. |


Tratcher commentedApr 4, 2016
Getting the user's e-mail address from Twitter is a pain. You have to contact Twitter support to request the permission for your app. Then you have to send a request to an additional endpoint. The auth middleware should support optionally sending this request.
http://stackoverflow.com/questions/22627083/can-we-get-email-id-from-twitter-oauth-api/32852370#32852370
http://stackoverflow.com/questions/36330675/get-users-email-from-twitter-api-for-external-login-authentication-asp-net-mvc?lq=1