chrislacy / TweetLanes

Tweet Lanes for Android
Other
769 stars 278 forks source link

Stuck at "Authorize Twitter Account" after fresh install #439

Open bug1303 opened 6 years ago

bug1303 commented 6 years ago

I have been happily using this app for some while. Now needed to re-install it (fresh install via google play store) and get stuck with a black screen, respectively one white with "Authorize Twitter Account" on top, but no options to click or enter anything. Tested on two different devices, same issue.

mcr42 commented 6 years ago

I am also seeing this whenever I try to add another account.

mcr42 commented 6 years ago

The problem seems to be, Twitter now checks if the Authorization CallbackURL is whitelisted in the Twitter APP profile. I had to put a http-URL into the APP settings in my Twitter Dev account, and had to use the exact same URL as CallbackURL in the TweetLanes org.tweetalib.android.TwitterSignIn.FetchAuthUrlTask#doInBackground method. I'm not certain what Chris has in his App settings, but I used String callbackUrl = "http://www.tweetlanes.com/tweetlanes-auth-callback"; and it works again.

Detailed Error message: 09-16 19:01:25.790 13062-13142/com.tweetlanes.android W/System.err: 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following). 09-16 19:01:25.790 13062-13142/com.tweetlanes.android W/System.err: <?xml version="1.0" encoding="UTF-8"?>Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings

mcr42 commented 6 years ago

Adding a second account won't work still. The app only tries to re-auth the current account.