How do I get user's email from twitter authentication

痞子三分冷 提交于 2019-12-12 02:47:17

问题


We have an ASP.NET application where we need user's email in order to further send them transactional email. We have added Twitter Signup but not getting email address along with access_token.

We have checked twitter documentation and their FAQs for the same but have had no luck so far. The FAQ says that we need to ask for user's email in as a distinct act:

recently I came to a website http://medium.com which asks for email while authentication in it's scope, please refer to the image below:

I'm not sure how do I add email scope to my twitter application. Any help is highly appreciated!


回答1:


It is not possible to get user's email address from twitter.

This can be made possible by filling out a form to request elevated permissions:

  1. Go to https://support.twitter.com/forms/platform
  2. Select "I need access to special permissions"
  3. Enter Application Name and ID. These can be obtained via https://apps.twitter.com/ -- the application ID is the numeric part in the browser's address bar after you click your app.
  4. Permissions Request: "Email address" Submit & wait for response


来源:https://stackoverflow.com/questions/33383320/how-do-i-get-users-email-from-twitter-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!