Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting authentication error. Can't find where/how to sign out and sign back in #1475

Open
3 of 14 tasks
GAferguson opened this issue Jan 13, 2023 · 144 comments
Open
3 of 14 tasks

Comments

@GAferguson
Copy link

GAferguson commented Jan 13, 2023

Check before submitting issue -- Thank you!

You can ignore this form if this issue is a feature request.

Expected behavior

Actual behavior

Steps to reproduce

Extra info

Android version: (version code here)

Network type:

  • Cellular
  • Wi-Fi

App version: (version code here)

Build variant:

  • Google
  • F-Droid

Micro-blogging service:

  • Twitter
  • Fanfou
  • GNU Social / StatusNet
  • Mastodon

App settings:

  • Custom API
  • Custom consumer key/secrets
  • Official keys
  • Using Thumbor
  • Connected through proxy
  • Media preview enabled
@HiddenLeveI
Copy link

Same issue, can't log back in now

@jonas1015119
Copy link

same, my own custom API keys get rejected (because they dont have Elevated access?), default ones just do nothing. Please fix.

@sdvcrx
Copy link

sdvcrx commented Jan 13, 2023

https://9to5google.com/2023/01/12/twitter-api-appears-to-be-down-breaking-tweetbot-and-third-party-clients/

@Qwerty-Space
Copy link

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

@fabioromeo
Copy link

This solves the problem, thank you!

@GONin3D
Copy link

GONin3D commented Jan 14, 2023

Unless I'm updating them wrong (likely) , the twidereX keys don't work for me 🙁

@umbellipher
Copy link

Worked for me when (with each key) I deleted 'ConsumerKey=' and 'ConsumerSecret=', and used the rest of it.

@GONin3D
Copy link

GONin3D commented Jan 14, 2023

Got it! Had to update each, then try to add a new account, then authorized for my current account instead of creating a new one. It told me I was already logged in and everything loaded correctly.

@vanhoopstallion
Copy link

Thank you. This is the only useable twitter app for android

@umbellipher
Copy link

You can always access Settings when signed out, and it's in there as an option. Glad it worked out.

@andrewjohnlowe
Copy link

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

@GONin3D
Copy link

GONin3D commented Jan 14, 2023

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

What worked for me is:

  1. Go to Settings > Network > Avanced > Default API Settings
  2. Replace the consumer key and consumer secret with those above and save
  3. Go to Accounts and click the + in the top right
  4. Choose Twitter > User Settings
  5. Click Register, then the Sign In button, this should take you to an authorization page
  6. Go through the authorization steps
  7. Refresh your timelines

Granted, there's probably steps in this that you don't need to do or that may be faster since I'm not well-versed, but this specific set of steps had the correct amount of voodoo magic to get mine working.

@andrewjohnlowe
Copy link

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

How exactly? Can you provide clarification, please?

What worked for me is:

  1. Go to Settings > Network > Avanced > Default API Settings
  2. Replace the consumer key and consumer secret with those above and save
  3. Go to Accounts and click the + in the top right
  4. Choose Twitter > User Settings
  5. Click Register, then the Sign In button, this should take you to an authorization page
  6. Go through the authorization steps
  7. Refresh your timelines

Granted, there's probably steps in this that you don't need to do or that may be faster since I'm not well-versed, but this specific set of steps had the correct amount of voodoo magic to get mine working.

Thanks! Not sure what I did, but I'm able to login to Twitter with Twidere (no 'X') using the Twidere X keys. I basically stabbed at my phone for a good 5 minutes, trying random stuff, until I got the browser login screen for Twitter. Then everything was working. Adding this for others to demonstrate that with perseverance this method works.

@abelincoln8
Copy link

Use these keys from the TwidereX app:

ConsumerKey=wmtrtTaVOjUnH5pWQp4LDI5Qs
ConsumerSecret=E9Q9u2yK0COJae2tLcNEdY75OPA3bxqJiGZQztraHaQUtoI2cu

Great success. Thank you very much QS for the assist.

I noticed that I was unable to log in with 2FA set up so I had to revert, and then reinstate after authentication.

Also, every time a login failed the API key/secret would revert back to the prior input. I noticed that I had to verify on each login attempt that the "new" TwidereX key/secret were being used.

Best of luck to anyone out there I had a dark, dark 72 hours of having to communicate with my family.

@civodul999
Copy link

Thank you for the new keys.
Do you know if I can use my own keys if I generate them through my developer portal ?

@keithzg
Copy link

keithzg commented Jan 15, 2023

Do you know if I can use my own keys if I generate them through my developer portal ?

I can confirm this is true, though you may have to make sure to create a "standalone app" that uses v1.1 of the API. Possibly I fat-fingered something, or copied from the wrong field or such, when I tried at first with creating an "elevated" app from the Twitter developer dashboard, but for whatever reason it didn't work for me (a bit surprising since the developer dashboard implies that an "elevated" app supports both v1.1 and v2 of the API, so one would assume it would be backwards compatible, but perhaps expecting convenient behaviour from Twitter's API is foolish!)

EDIT: My v1.1 API key gives me an error indicating my app is read-only, I found Twitter's developer console oddly confusing though so I mighta just screwed something up. (The TwidereX key works fine for me, to join the chorus.)

Note too that you don't necessarily have to dive in and change the default API settings, you can also just enter the consumer secret and key when adding an account---there's a button up in the top-right, to the left of the settings button, in the Sign In page within Twidere when adding an account.

@Tlaster
Copy link
Contributor

Tlaster commented Jan 16, 2023

I've updated the remote API config for testing, it should resolve the issue for now, but there is no guarantee that Twitter will not block this API Key.

@jonas1015119
Copy link

I've just started getting "Network Error: Empty Data" issues whenever I try to like a tweet. Everything else still seems to work, any ideas? (using the Twidere X keys)

@EliasGagnef
Copy link

I've just started getting "Network Error: Empty Data" issues whenever I try to like a tweet. Everything else still seems to work, any ideas? (using the Twidere X keys)

Same here, does anybody have any solutions? Everything works for me but not liking tweets

@fusenuk
Copy link

fusenuk commented Jan 16, 2023

Trying to retweet also leads to a 'hit a daily limit' error.

It seems possibly that too many people are using the Twidere X keys compared to what their limits will allow.

It feels like the best solution will be for each person to get their own keys via a fake app in the developer portal.

@EliasGagnef
Copy link

EliasGagnef commented Jan 17, 2023

I think that you are totally right @fusenuk, I followed the instructions from the Talon Github repository to get my own keys and it totally worked! Here's the instructions everyone:

To get your Twitter API key, go through these steps:

1: Sign in on their developer site (https://apps.twitter.com/)

2: Click Create New App.

3: Choose a name, description, and website. These are all required and unique to your app, but it makes no difference what you call them. Anything will work here.

4: For the callback URL, you can do anything you like, but to have it work out of the box, use: http://talonfortwitter.com (since we are using Twidere I guess you can put any website you want instead, but it doesn't matter)

5: If you want a different one (stressing that it really DOES NOT matter..) then change it in the LoginFragment

6: Read and accept their Rules of the Road, then Create your Twitter Application
After it is created, you can change the icon and add some other info from the settings page.

7: You NEED to go to the Permissions page of the app and select the Read, Write and Access direct messages option, or else you won't be able to do anything but view your timeline.

Now go into your "new app", go into the "Keys and tokens" section and copy the API Key and Secret into Twidere using the steps from @GONin3D, I hope this helps someone :)

@FritesMoules
Copy link

FritesMoules commented Jan 22, 2023

Hi everyone,

I face the same issue on Twidere on my Android phone too ("incorrect api settings") so I wanted to try the above mentioned trick but I can't create a developer account visibly: I am stuck with the following message "There was a problem completing your request: User must have a verified phone number on file prior to submitting application."

I use Twidere for privacy purposes so ending up giving my phone number to Twitter to create a developer account doesn't make any sense to me.

Also, I'm not sure if it's related or not, but when I click on the 'Create an App' button, I have the following message:

"You may continue managing your existing Apps but if you would like to create new Apps or use Twitter premium APIs, please apply for a developer account.

As a developer platform, our first responsibility is to our users: to provide a place that supports the health of conversation on Twitter. To continue to prevent misuse of our platform, we have introduced a few new requirements for developers."

I didn't try using the Twidere X API keys as people are reporting here it's not always working great and chances are the use of these publicly available keys will be limited in the future as more and more people are using them (from what I've understood by reading above).

Can someone help me and tell me the best course of action?
And also what's "wrong" with using Twidere-X instead of Twidere?

Thanks a lot guys, I am not a developer myself and I have limited understanding of all development related things, I'm just concerned about my privacy, so your help is precious and means a lot to me.

@jonas1015119
Copy link

Do you know if I can use my own keys if I generate them through my developer portal ?

I can confirm this is true, though you may have to make sure to create a "standalone app" that uses v1.1 of the API. Possibly I fat-fingered something, or copied from the wrong field or such, when I tried at first with creating an "elevated" app from the Twitter developer dashboard, but for whatever reason it didn't work for me (a bit surprising since the developer dashboard implies that an "elevated" app supports both v1.1 and v2 of the API, so one would assume it would be backwards compatible, but perhaps expecting convenient behaviour from Twitter's API is foolish!)
EDIT: My v1.1 API key gives me an error indicating my app is read-only, I found Twitter's developer console oddly confusing though so I mighta just screwed something up. (The TwidereX key works fine for me, to join the chorus.)
Note too that you don't necessarily have to dive in and change the default API settings, you can also just enter the consumer secret and key when adding an account---there's a button up in the top-right, to the left of the settings button, in the Sign In page within Twidere when adding an account.

EDIT--- Managed to get it working by applying for elevated and using a Staging set application, probably my inexperience missed something though and that is unnecessary steps.

Looks like it only works if you have elevated access. What do you mean by Staging set application?
My Elevated Application got denied because "It looks like your proposed use case may be in violation of one or more sections of the Developer Agreement and Policy, Automation Rules, and/or the Twitter Rules."
Anyone have any success, what did you write?
These are my current settings and I get the 453 Error when I go to the Authorization screen.
image)

@vanhoopstallion
Copy link

vanhoopstallion commented Jan 22, 2023

Getting Error 32 "could not authenticate you" with twidere x keys this morning.

Edit: Twidere X looks to be locked out with the same keys

@fusenuk
Copy link

fusenuk commented Jan 22, 2023

Yeah, it appears they've now blocked Twidere X

The new Twitter rules say 'no third party clients'

So it makes sense that we will now start to see nearly all consumer API keys start to get blocked for any largely used client

Worrying one of the posts above makes it look like they are also being selective on who can create new custom API keys as they don't want people using them for clients either.

@Inrumpo
Copy link

Inrumpo commented Jan 22, 2023

I can confirm that the "use Twidere X keys workaround" doesn't work anymore. In my case that trick stopped working roughly 16 hours ago.

@jonas1015119
Copy link

jonas1015119 commented Jan 22, 2023

I don't know why I didn't think of this earlier, but the official Twitter API Keys work!

  1. put in the Twitter for iPad(!) API Key (https://gist.github.com/shobotch/5160017)
  2. change authentication to XAuth
  3. put in your details (username and password) in the Twidere interface. (need to have 2 Factor disabled)

Worked on the first try for me, you might need to remove your existing account or reinstall Twidere if you get errors.

@Musketeiro
Copy link

Musketeiro commented Jan 22, 2023

I don't know why I didn't think of this earlier, but the official Twitter API Keys work! Just put in the Twitter for Android API Key (https://gist.github.com/shobotch/5160017), change authentication to XAuth, put in your details and refresh. Worked on the first try for me, and you notification column will display likes for once!

Not working for me. Says the account has been suspended the moment I try to login (it hasn't).

@abelincoln8
Copy link

thank you for checking Hasan - I've been using mac and have been wondering if other keys still allowed additional functionality. I appreciate you checking it out for us.

One day someone is going to figure it out and pull the plug. I'm dreading the day. Maybe it will just stay functioning this way for a few years.

Rough to go out not with a bang, but a whimper.

@camisotro
Copy link

Just wanted to update that this xauth workaround has finally kicked the bucket for me. Was using the Twitter for Android keys for months. Finally today I can't get any timeline tweets. If anyone has a counterexample of it still working, please advise!

@l17r
Copy link

l17r commented Jan 19, 2024

Yeah, unfortunately, same here.

@RayneYoruka
Copy link

I'm genuinely surprised that it has lasted for so long

@abelincoln8
Copy link

Glad you said something camisotro + I17r -
I'm able to log in successfully but I'm not getting any data for new posts
I tried a few different API keys as well - all the same, no new data
I'm genuinely sad about this
pouring one out for my TWTR usage
God bless you all
2nd star to the right and straight on til morning

@HiddenLeveI
Copy link

HiddenLeveI commented Jan 19, 2024

I just ended up using squaker which is a fork of fritter to view things only. But now I can't search things on there, looks like Elons trying to purge all the bots.

@xojojo
Copy link

xojojo commented Jan 19, 2024

I was rereading this thread last night hoping to find keys that still worked. Sad to see no solutions so far. I have been using Squawker to open links for a while (since opening links in twidere has been giving me the "you cannot see this protected user's tweet" message for months) but it seems to have stopped working last night also. Maybe there will be an update for it...

I guess I'm down to reading an RSS feed through nitter, which still works for public accounts. Shame about trying to keep up with anyone with a locked account though.

@Musketeiro
Copy link

Musketeiro commented Jan 20, 2024

Focus still works and it is updated every now and then.
https://play.google.com/store/apps/details?id=allen.town.focus.twitter

@camisotro
Copy link

@Musketeiro There seem to be several similarly-named apps... can you provide a link to the specific one, and any instructions needed to make it work?

@Musketeiro
Copy link

Musketeiro commented Jan 20, 2024

@Musketeiro There seem to be several similarly-named apps... can you provide a link to the specific one, and any instructions needed to make it work?

No instructions needed. It works out of the box.
https://play.google.com/store/apps/details?id=allen.town.focus.twitter

It's not Twidere, but it works fairly well.

@Hasan5750
Copy link

@LukeDuckwalker
Copy link

@Musketeiro There seem to be several similarly-named apps... can you provide a link to the specific one, and any instructions needed to make it work?

No instructions needed. It works out of the box. https://play.google.com/store/apps/details?id=allen.town.focus.twitter

It's not Twidere, but it works fairly well.

Thanks a lot! Really appreciated 👍🏻

@l17r
Copy link

l17r commented Jan 21, 2024

A bit outside the scope of this issue, but since it's not going to get fixed, might as well: There does not seem to be a way to add lists or any other custom options to the main selection of drawers in Focus?

@Hasan5750
Copy link

A bit outside the scope of this issue, but since it's not going to get fixed, might as well: There does not seem to be a way to add lists or any other custom options to the main selection of drawers in Focus?

Not even if you purchase pro plan?

@l17r
Copy link

l17r commented Jan 21, 2024

That's possible, but I'm not paying them just to find out (since I won't use a subscription plan either way).

@andrewjohnlowe
Copy link

I used to use both Twidere for Android (using the Mac keys) and an old pre-Elon version of the Twitter app (I intentionally "downgraded" for a better user experience). As of yesterday, neither read the timeline. I'm guessing that Twitter revoked access to a bunch of old API keys. Does anyone know of any working keys?

@abelincoln8
Copy link

tried about a dozen from github on Friday and none worked unfortunately

@HiddenLeveI
Copy link

HiddenLeveI commented Jan 22, 2024

Honestly I'd rather just not use twitter. I'd not use it at all if I can't use clients. I use newsboat on my Linux terminal which is for rss feeds, and I can't even pull the rss feeds off Nitter now, fricking nuts. I stopped using Facebook and Insta, I used Twitter just because it seemed more informative but I might just give up on that.

@RayneYoruka
Copy link

Honestly I'd rather just not use twitter. I'd not use it at all if I can't use clients. I use newsboat on my Linux terminal which is for rss feeds, and I can't even pull the rss feeds off Nitter now, fricking nuts.

You should start using mastodon, that at least will still work via twidere...

@HiddenLeveI
Copy link

HiddenLeveI commented Jan 22, 2024

@RayneYoruka I used to use Mastodon but there just wasn't that much on there for me. My account still exists but I got bored of going on.

@RayneYoruka
Copy link

@RayneYoruka I used to use Mastodon but there just wasn't that much on there for me. My account still exists but I got bored of going on.

This is why I just moved to use a modded client of the twitter and call it a day, it's been fine since my last comment here
#1475 (comment)

@andrewjohnlowe
Copy link

What's this modded client app of Twitter that you speak of?

@RayneYoruka
Copy link

What's this modded client app of Twitter that you speak of?

Go check it from mobilism

@EliasGagnef
Copy link

EliasGagnef commented Jan 23, 2024

What's this modded client app of Twitter that you speak of?

Go check it from mobilism

I woud not use random modded apks, check out https://github.com/revanced/revanced-manager instead, you just patch your own APK

@RayneYoruka
Copy link

What's this modded client app of Twitter that you speak of?

Go check it from mobilism

I woud not use random modded apks, check out https://github.com/revanced/revanced-manager instead, you just patch your own APK

Everyone can do as they wish x)

@jonas1015119
Copy link

does anyone know what Twitter actually changed? Did they disable the old API Keys and replace them for the official apps? Why are Focustwitter and OldTweetDeck (was down for half a day but then got fixed) still working?

@Hasan5750
Copy link

I think you need to generate a auth_token together with token and token secret.

@jonas1015119
Copy link

just tried, it logs in but gives you the oauth v1.1 error, same since they started using 2.0. Isnt that what killed the regular keys in the first place?
OldTweetDeck somehow got back up within a day, so whatever they did probably needs to be done with Twidere. Anyone that can code wanna make a fork?

@Hasan5750
Copy link

Auth_token is a cookie not a token. Twidere doesn't use cookies. Not v1 or v2 issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests