Twitter Call back URL

前端 未结 7 1267
盖世英雄少女心
盖世英雄少女心 2020-12-05 04:41

I am working with twitter SDK to integrate with in ios app.When i follow all the step and create the customer key and put it in my app.When I run the app it show \"[Twitter

相关标签:
7条回答
  • 2020-12-05 05:24

    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

    0 讨论(0)
  • 2020-12-05 05:29

    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]

    0 讨论(0)
  • 2020-12-05 05:34

    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://.

    0 讨论(0)
  • 2020-12-05 05:34

    Go to https://apps.twitter.com

    Then in the "Settings" tab of your app. Fill the "Callback URLs" form.

    According to this documentation i guess you just have to enter a valid URL : https://github.com/twitter/twitter-kit-ios/wiki/Installation

    NOTE: Although the callback URL will not be requested by Twitter Kit in your app, it must be set to a valid URL for the app to work with the SDK.

    0 讨论(0)
  • 2020-12-05 05:37

    My solution: I hope it's useful.

    0 讨论(0)
  • 2020-12-05 05:38

    Hey everyone here is a simple fix that worked for me.

    Go to: https://apps.twitter.com Go into the settings tab. Under Terms of Service URL uncheck the box that says: "Unable Callback Locking" Now test your app.

    0 讨论(0)
提交回复
热议问题