Skip to content

Conversation

@alexagranov
Copy link

If you peruse this thread: https://twittercommunity.com/t/how-to-get-email-from-twitter-user-using-oauthtokens/558/202
you will find enough information on getting user emails out of Twitter.

Here's a quick summary:

  1. Use this form https://support.twitter.com/forms/platform and click 'I need access to special permissions'
  2. Fill out the form with all relevant info, requesting that you would like access to user emails and click Submit.
  3. This will generate an email from Twitter explaining their policy towards user email access. It will reference XAuth - don't worry that means OAuth too for them. Reply to the email as per their instructions - I DID NOT have to send them a link to a video however.
  4. You should receive another email from Twitter within 24 hours granting you access.
  5. Go back to your App page on Twitter, fill in Privacy Policy and User Agreement links as they request. Save your changes.
  6. On the 'Permissions' tab of your App page, enable asking for User email. Save your changes.

After doing all of that, I was still not getting user email by just setting email: 'email' in Sorcery's twitter config config.twitter.user_info_mapping.

Debugging the request Sorcery was making for user info, I found that appending 'include_email=true' to the 'verify_credentials.json' endpoint did the trick.

I looked around for as clean as possible a way to add this but without modifying Sorcery configs, this was the quickest way for me to keep working. Hope it helps out.

@vlasad
Copy link

vlasad commented Nov 8, 2016

+1

1 similar comment
@saitokok
Copy link

saitokok commented Dec 8, 2016

+1

@Ch4s3
Copy link
Contributor

Ch4s3 commented Dec 13, 2016

the project has moved to https://github.com/Sorcery/sorcery/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants