Failed to get request token on Android M running Devices

后端 未结 9 1324
误落风尘
误落风尘 2021-01-01 17:39

Twitter login failed in Android 6.0 preview devices. Its working fine on all other devices.

Below code is used to initialize fabric with twitter.

TWITTER_ K

相关标签:
9条回答
  • 2021-01-01 17:58

    Create your Your Access Token in Key and Access Token tab

    0 讨论(0)
  • 2021-01-01 18:02

    I had the same problem on iOS, and found a hint here:
    Apparently, it is now required to set the Callback URL to

    http://twitter-oauth.callback

    Sind I did so, the login works again.

    0 讨论(0)
  • 2021-01-01 18:08

    I was facing the same issue(just moments back).

    Go to Twitter Application Management ->
    Click on the 'app' on which you are currently working ->
    Click on 'Settings' tab ->
    1) Callback URL: Insert any valid url(like homepage of your website)
    2) Enable Callback Locking (It is recommended to enable callback locking to ensure apps cannot overwrite the callback url): Verify that it is unchecked

    Twitter Kit tries to use a webview if the twitter app is not found.
    The webview part of Twitter kit needs to override the callback url.

    Info about Callback Url field clearly states: To restrict your application from using callbacks, leave this field blank.
    So, we need to write down any valid url :)

    Reference:
    Personal experience obtained moments back :P
    Failed to get request token

    0 讨论(0)
  • 2021-01-01 18:10

    I have same problem and solved. In my case i need to set callback url in twitter dev account.

    Twitter dev account->setting->callBack url(set any valid url like www.google.com)

    0 讨论(0)
  • 2021-01-01 18:14

    Before this solution, I tried a valid url (even google.com). But, in my case, it did not work.

    I then found this solution, which worked well for me:

    Step 1: Go to your twitter app's settings by logging in at https://apps.twitter.com/ and selecting the Settings tab, then add twittersdk:// as a callback url. (I found it in lib class.)

    Step 2: Save your update.

    Step 3: Try your app again.

    0 讨论(0)
  • 2021-01-01 18:17
    1. Make sure your Callback Urls is inputted.
    2. Make sure Twitter app is installed on your device(Android, iOS)

    Hope this help. It work well for me (https://www.assetstore.unity3d.com/en/#!/content/79450).

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