0

I am sharing my string and images via twitter using twitte SDK. The code which i used to transfer my content to twitter works fine previously, but now i am getting OAuthCommunication Exception.

oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: Service provider responded in error: 301 (Moved Permanently)

Can anyone guide me how to solve this issue.

RAAAAM
  • 3,378
  • 19
  • 59
  • 108
  • 1
    Check this pls http://stackoverflow.com/questions/14933160/service-provider-responded-in-error-301-moved-permanently-twitter-api-1-1 – Deniz Jan 28 '14 at 06:29

1 Answers1

0

Update Twitter Oauth paths with https:

new DefaultOAuthProvider("https://api.twitter.com/oauth/request_token",
                        "https://api.twitter.com/oauth/access_token",
                        "https://api.twitter.com/oauth/authorize");

Courtesy

Community
  • 1
  • 1
Kamlesh Arya
  • 4,864
  • 3
  • 21
  • 28