Failed to get request token on Android M running Devices

后端 未结 9 1465
误落风尘
误落风尘 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 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

提交回复
热议问题