I have mobile app, and I need to registrate user with twitter.
I'm getting params X-Auth-Service-Provider and X-Verify-Credentials-Authorization for OAuth Echo and send them to server
Server calls verify_credentials and gets Twitter User Profile.
But this profile does not contain user's email, how can I get user's email at backend, while authorizing user in mobile app?
To request a user’s email address, your application needs to be whitelisted by Twitter. To do that, you need:
I need access to special permissions
option.Email address
.Once your request is approved or if you're already whitelisted, you can go back to https://apps.twitter.com and under the app permissions section, a new checkbox Request email addresses from users
will be available. You'll need to enable this new option. The Privacy Policy URL and Terms of Service URL fields will also be available.
At this point, you can add the include_email
parameter to your account/verify_credentials
request.
Some related points:
null
.