Reputation: 4650
I am working in an android application and I want to share a tweet( http://www.android10.org/index.php/articleslibraries/291-twitter-integration-in-your-android-application) to twitter from my android application. I have created a twitter application in twitter developers an I have integrated the CONSUMER_KEY and CONSUMER_SECRET and the first day it worked correctly and the second day it causes error Error during OAUth retrieve request token(OAUth communication exception).
Please help me.
Upvotes: 1
Views: 237
Reputation: 159
Use This..
StatusesService statusesService = TwitterCore.getInstance().getApiClient().getStatusesService();
Call<Tweet> tweetCall = statusesService.update(text, null, false, null, null, null, false, false, null);
tweetCall.enqueue(new Callback<Tweet>() {
@Override
public void success(Result<Tweet> result) {
Log.d("result", result.data.idStr);
}
@Override
public void failure(TwitterException exception) {
hideProgressDialogResult();
exception.printStackTrace();
}
});
Upvotes: 1
Reputation: 3858
edit your application permissions to read and write and save your application profile on twitter.. then try again
Upvotes: 0