Last Updated: October 12, 2017
·
2.73K
· ffleandro

Twitter4j: Adapt to latest twitter SSL/TLS traffic restrictions

If you're using Twitter4j on your app and recently stopped working it's due to the latest Twitter SSL/TLS traffic restrictions.

In order to adapt to those changes, you need to configure the endpoint of your connection to the following:

ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();
       (...)
configurationBuilder.setOAuthAuthenticationURL("https://api.twitter.com/oauth/request_token");
configurationBuilder.setOAuthAccessTokenURL("https://api.twitter.com/oauth/access_token");
configurationBuilder.setOAuthAuthorizationURL("https://api.twitter.com/oauth/authorize");
configurationBuilder.setOAuthRequestTokenURL("https://api.twitter.com/oauth/request_token");
configurationBuilder.setRestBaseURL("https://api.twitter.com/1.1/");
Configuration mConfig = configurationBuilder.build();

1 Response
Add your response

its not working.. still i m getting " SSL IS REQUIRED " Error in android. Btw thnq

over 1 year ago ·