Hi Andy, trying to be concise isn’t always helpful!
Thanks for jumping in.
The objective is to provide a post to Twitter from our Android app. We’ve created a corresponding Twitter app to enable this and are using Twitter4J. We use the given App ID and Secret in the configuration, but when the user logs on we get the 401 error with “user / password combination seems to be invalid”. We’ve tried regenerating keys with no improvement.
We then tried three eliminations:
-
We took the App ID and Secret from another Android app that we’ve released and is already working with Twitter, and used that instead of the key pair for the new app. This allows the user to log on. This suggests that the implementation in the new app is okay
-
We used the given App ID and Secret for the new app, and tried it in a debug version of the working app. This now stopped the user from logging on with the same error. This confirms there is an issue with the account/keys
-
We tried using the keys in a working iOS app in lieu of the working keys and that stopped working. Further confirmation of the account/keys problem
This makes it clear to me that there’s something broken in the account - the account shows it is approved and live, and Twitter support have not identified a fault with it. It appears that other people have also seen this same issue recently.
Now we may have done something subtly different in the account setup, but from where we sit it is impossible to resolve what is wrong.
Thanks in anticipation of pointing out the obvious mistake we’ve made. 