Skip to content Skip to sidebar Skip to footer

"ssl Is Required" Exception While Requesting Oauthrequest Token Using Twitter4j Library

I was trying this sample application provided here, I am getting 'SSL is required' exception in this particular piece of code private void askOAuth() { ConfigurationBuilder

Solution 1:

Got this solved If you are using twitter4j version 3 or less that in ConfigurationBuilder you have to set

configurationBuilder.setUseSSL(true);

because twitter has made ssl as mandatory to make API request

for twitter4j version 4, by default ssl is used.

Post a Comment for ""ssl Is Required" Exception While Requesting Oauthrequest Token Using Twitter4j Library"