I’m trying to post tweets form my android application. After the user authorize my application to use its account, normally the tweet have to be posted automatically but in my case, nothing happened. The authentication part works fine, the problem is in the share part. Using Fabric, this is how I post the tweet:
TwitterSession session = Twitter.getSessionManager().getActiveSession();
StatusesService statusesService = Twitter.getApiClient(session).getStatusesService();
statusesService.update(message, null, null, null, null, null, null, null, String.valueOf(new Callback<Tweet>() {
@Override
public void success(Result<Tweet> result) {
Log.d("Tweet", "post success");
}
@Override
public void failure(TwitterException e) {
e.printStackTrace();
}
}));
When I debug the success
and the failure
.
I got any error, no exception, but nothing is posted.
What is wrong with what I’m doing?
Try checking this its a lil bit old code