Twitter error while sending message to android?

I use twitter4j.jar to post to twitter. But while I am posting on Twitter, my log cat shows error.How below I can solve this. Please can someone help me?

OAuth - Error sending to Twitter 410: Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=15bb6564 or http://www.google.co.jp/search?q=010f3e5b TwitterException{exceptionCode=[15bb6564-010f3e5b], statusCode=410, retryAfter=0, rateLimitStatus=null, version=2.1.11} at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:199) at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:75) at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:112) at twitter4j.Twitter.updateStatus(Twitter.java:593) at com.android.abchealthgroup.facebook_twitter_post.TwitterUtils.sendTweet(TwitterUtils.java:40) at com.android.abchealthgroup.facebook_twitter_post.PrepareRequestTokenActivity$RetrieveAccessTokenTask.executeAfterAccessTokenRetrieval(PrepareRequestTokenActivity.java:149) at com.android.abchealthgroup.facebook_twitter_post.PrepareRequestTokenActivity$RetrieveAccessTokenTask.doInBackground(PrepareRequestTokenActivity.java:134) at com.android.abchealthgroup.facebook_twitter_post.PrepareRequestTokenActivity$RetrieveAccessTokenTask.doInBackground(PrepareRequestTokenActivity.java:1) 

Thanks at Advance.

+4
source share
1 answer

twitter4j-core-2.1.11 uses the Twitter API 1.0, which was disabled by twitter yesterday (see announcements from twitter). In order to be able to use Twitter in the future, you need to update your twitter4j library to one that supports the new twitter API 1.1. This applies to twitter4j 3.0.x.

+5
source

Source: https://habr.com/ru/post/1485925/


All Articles