Today, Twitter is needed to develop a project, but the official website does not directly support Android. On the website, we can see a feature called Twitter4j, as a result, there is no problem in following the DEMO. you can log on to Alibaba Cloud, provide a certificate, and send a tweet.
However, when I renewed my twitter account, the problem occurred. I did not export a dialog during the verification period so that I could enter the user name and password. Instead, I directly threw it into my account, as follows:
Authorization failure (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.
I searched on google and found that many people found this problem. Some people said that the date and time of the device were not synchronized, I found that the account on the DEMO can be used normally because I concentrated my focus on twitter account, some things have not been set up yet.
Select My applications (My application)
Select the application created by zookeeper.
Jump to the Settings tab.
The incoming box of a Callback URL is empty. A url is displayed with a few clicks,
Save settings
Then, the login interface of the long time was displayed.