in android app need add twitter login functionality.i have integrated code in app in returns exception ssl not found. code login -
if (!istwitterloggedinalready()) { configurationbuilder builder = new configurationbuilder(); builder.setoauthconsumerkey(twitter_consumer_key); builder.setoauthconsumersecret(twitter_consumer_secret); configuration configuration = builder.build(); twitterfactory factory = new twitterfactory(configuration); twitter = factory.getinstance(); try { requesttoken = twitter .getoauthrequesttoken(twitter_callback_url); this.startactivity(new intent(intent.action_view, uri .parse(requesttoken.getauthenticationurl()))); } catch (twitterexception e) { e.printstacktrace(); } } else { // user logged twitter toast.maketext(getapplicationcontext(), "already logged twitter", toast.length_long).show(); } and returns error -
403:the request understood, has been refused. accompanying error message explain why. code used when requests being denied due update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm- -following). ssl required
relevant discussions can found on internet at:
http://www.google.co.jp/search?q=10f5ada3 or
http://www.google.co.jp/search?q=dceba039
twitterexception{exceptioncode=[10f5ada3 dceba039], statuscode=403, retryafter=-1, ratelimitstatus=null, featurespecificratelimitstatus=null, version=2.2.6}
null
ssl required null
exceptiondiagnosis{stacklinehash=284536227, linenumberhash=-588537799}
i not getting error is.
one more question callback url used in app.
thanks in advance.
update twitter4j jar latest version.
twitter4j 4.x use ssl default. twitter needs connections use "https://" instead of "http://"
Comments
Post a Comment