I tried to working with twitter integration in android. I used twitter4j jar for doing this. while posted into twitter I got this error.
{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}
So, I followed this link for solving myproblem: How to Migrate Twitter API from v1 to v1.1?
It was fine, but in my code I tried to post image into twitter. Below line code of my class was not supported:
OAuthAuthorization auth = new OAuthAuthorization(conf, conf.getOAuthConsumerKey(), conf.getOAuthConsumerSecret(), new AccessToken(conf.getOAuthAccessToken(), conf.getOAuthAccessTokenSecret()));
ImageUpload upload = ImageUpload.getTwitpicUploader (com.cpt.realtor.socialsharing.SocialSharingConstants.TWITPIC_APP_KEY, auth);
How can I solve this, by Migrating from v1 to v1.1