Failed to get request token on Android M running Devices

我的梦境 提交于 2019-11-30 11:36:33

Here are the things you need to do

Twitter dev account->setting->callBack url

and then if you are doing for the android (means login using for android devices )

twittersdk://
(add this in callback)

if you are doing for the iOS (means login using for apple devices )

twitterkit-CONSUMERKEY://
(add this in callback)

and hit update settings button it will work :)

Moinkhan

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.

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)

this is the best solution when twitter auth not working without app. i tried with valid firebase auth callback url but not working and i also search this problem a lot but not getting the exact solution, @Moinkhan solution worked for me and save my time, thanks to @Moinkhan, it works

Before this solution i tried valid url and even google.com too. But for my case it was not working.

i found below solution and it work well for me.

Step 1: go to your twitter app setting https://apps.twitter.com/ >> Tab settings >> Fill this text "twittersdk://" to your callback url field( i found it in lib class)

Step 2: Save your update

Step 3: check out your app again

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

Create your Your Access Token in Key and Access Token tab

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.

After going through a lot of solutions, one that worked for me is just add - twittersdk:// as one more callback URL in the setting section of your twitter app.

  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).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!