Twitter Call back URL Twitter Call back URL swift swift

Twitter Call back URL


I had the same problem and the TwitterKit documentation is not accurate or Twitter has changed their policies. In any case, on the Twitter Apps site, the callback URL has to be set very specifically. The callback URL should be in the format:

twitterkit-{consumer/api key}://

For example:

twitterkit-128238aKjqlp123AKdasdf://

Also, this needs to be registered in your Info.plist exactly the same:

<dict><key>CFBundleURLSchemes</key><array>    <string>twitterkit-128238aKjqlp123AKdasdf</string></array></dict>

More documentation is listed here: https://developer.twitter.com/en/docs/basics/callback_url.html


I just added on callback url field twitterkit-<api/consumer Key>://.If you have an apiKey like abc you should add twitterkit-abc://. This work for iOS, for Android just add twittersdk://.


To Fix this issue do as below:

[Mandatory]

Add CallbackURL into the dashboard as below format:

For iOS:

twitterkit-CONSUMERKEY://

For Android:

twittersdk://

Help Link:

https://twittercommunity.com/t/ios-twitter-login-error-code-415/107775

[ Note: Please replace your consumer key in place of words "CONSUMERKEY" in above format]