Callback URL Example


#1

Hello,

We are using TwitterKit to allow users to authenticate to Feedly using their Twitter account.

Per the announcement made, the authentication has stopped to work (at leas ton devices where Twitter is not installed and a SafariViewController or WebView is used to perform the authentication.

These are the errors we see in the console:
[TwitterKit] did encounter error with message “Unable to authenticate using the system account.”: Error Domain=TWTRLogInErrorDomain Code=0 “User denied access to system accounts.” UserInfo={NSLocalizedDescription=User denied access to system accounts., NSLocalizedRecoverySuggestion=Give this user access to the System Twitter account.}
2018-06-13 22:48:11.410318-0700 feedly[82789:19674370] [TwitterKit] No matching scheme found.
2018-06-13 22:48:11.530490-0700 feedly[82789:19674370] [TwitterKit] did encounter error with message “Error obtaining user auth token.”: Error Domain=TWTRLogInErrorDomain Code=-1 “<?xml version="1.0" encoding="UTF-8"?>Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings” UserInfo={NSLocalizedDescription=<?xml version="1.0" encoding="UTF-8"?>Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings}

After spending a couple of hours, it is not clear what callback URL the iOS SDK uses under the cover and we should whitelist in our app settings. We tried adding twitterkit-XXXXXXXXXXXXXXXXX:// where XXXX is out Consumer Key but that did not seem to work.

Do you have a specific example of what callback URL we should whitelist in the app settings when we use the Twitter Kit SDK for allowing users to login?

Thanks!


#2

we’ve tried adding callback url of a kind twitterkit-<twitter_consumer_key>:// in app dashboard. Worked for us


#3

Alex, does your application settings look like this?


#4

That’s the correct format (twitterkit-CONSUMERKEY://)
Make sure you have no trailing spaces on the callback URL for iOS.