A
A
Alexey Anisimov2017-05-26 06:19:38
Twitter
Alexey Anisimov, 2017-05-26 06:19:38

Why don't I receive an email from the twitter api when I re-login via twitter?

Good afternoon.
There is an iOS application and an API for it.
Getting user data via twitter api account/verify_credentials ' include_email ' => ' true ', 'skip_status' => 'true'
https://dev.twitter.com/rest/reference/get/account...
Scenario 1:
1. Delete twitter account on phone
2. Launch our app
3. Request login via twitter in our app
User data comes in including user email (it's verified)
Scenario 2:
1. Execute scenario 1
2. Log out from our app but email is there already gone . Scenario 3:
3.

1. Delete twitter account in phone
2. Add twitter account in phone settings
3. Log out in our app
4. Request login via twitter in our app
User data comes in, but email is no longer there . (as in scenario 2)
It turns out that twitter gives email only the first time after logging into twitter on the phone , then the email does not come.
Who met with a similar bug? There are ideas how to solve this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Anisimov, 2017-05-26
@AnisimovAM

From the documentation for the method:
Your app will need to regenerate the user access tokens for previously authenticated users to access their email address.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question