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();
Written by Filipe Leandro
Related protips
1 Response
its not working.. still i m getting " SSL IS REQUIRED " Error in android. Btw thnq
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#