question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Twitter auth, how to get email?

See original GitHub issue

Greetings

It took me awhile but I can finally see what is in the new 1.0 release. So I handle to create the Twitter authentication and the user is correctly logged in. I was very surprised when in the firebase.google console the user have no email!

The first thing I did was to check it using:

String email = FirebaseAuth.getInstance().getCurrentUser().getEmail();
Toast.makeText(this, email, Toast.LENGTH_SHORT).show();

But there is no email. So I have being doing some search and found here some indications to get the email in web. However, in the Android documentation there is no email reference. What confuses me most is this StackOverflow question where is explained there is no way to get the email.

UPDATE: Another attempt to get more details was to send email verification, which didn’t work with Twitter, cross check using email/password login.

Can we get the user email with Twitter login? Thanks in advanced.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10

github_iconTop GitHub Comments

46reactions
SUPERCILEXcommented, Dec 2, 2016

@cutiko @juanlet I finally got around to testing it today and I can confirm that the email is received if you request it in the Twitter dashboard: image

Also, what do you think of this update to the README?

3reactions
SUPERCILEXcommented, Dec 2, 2016

@cutiko @juanlet Just FYI, to get the email you’ll need to reset the permissions used by your app by going to https://twitter.com/settings/applications and revoking it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get email from Twitter Api - Standard APIs v1.1
Requesting a User's Email Address requires your application to be whitelisted by Twitter. To request access, please visit Platform. Otherwise, ...
Read more >
Can we get email ID from Twitter oauth API? - Stack Overflow
Goto Twitter Apps · Click on 'Create New App' · Fill all required credentials and click on 'Create your Twitter application' · Now...
Read more >
Can't log in on Twitter.Why no email returned?
Twitter connections do not retrieve the user's email address by default. ... Click Edit next to Authentication settings, then toggle the ...
Read more >
ASP.NET Core: Retrieving a User's Email and Name from the ...
Now that you have created your new Twitter application, if you tried to use .NET's external login provider to retrieve the user's email, ......
Read more >
Retrieving an User's email from Twitter external authentication
In this post I'm going to put focus on how to retrieve User's email from Twitter external authentication in IdentityServer4 using ASP.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found