Email doesn't return anymore

ios
swift
twitterkit
email

#1

I’m using Twitter kit in my ios application It used to return email after request, now out of nowhere it doesn’t work.

this is the error in console

“Request failed: unauthorized (401)” UserInfo={NSLocalizedFailureReason=Twitter API error : Invalid or expired token. (code 89), TWTRNetworkingStatusCode=401, NSErrorFailingURLKey=https://api.twitter.com/1.1/account/verify_credentials.json?skip_status=true&include_email=true, NSLocalizedDescription=Request failed: unauthorized (401)}

I had different error first I used it wasn’t requesting email, then after trying different solutions I had the above error. and when I login to my twitter account from my app email request screen doesn’t show.

I updated pod ‘TwitterKit’,’~> 3.1.0’, but the issue still the same.
I’m using swift 3.


#2

HI @TabulaRasaMe,

I would first double check that you have read/write permission as well as email permissions in your TwitterKit settings at https://apps.twitter.com under the “Permissions” tab. If that’s all in order do you mind sharing the code snippet you are using to make the two requests?


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.