android - How to use createFriendShip(..) in Twitter4J? -
builder = new configurationbuilder(); builder.setoauthconsumerkey(pref.getstring("consumer_key", "")); builder.setoauthconsumersecret(pref.getstring("consumer_secret", "")); accesstoken accesstoken = new accesstoken(pref.getstring("access_token", ""), pref.getstring("access_token_secret", "")); twitter = new twitterfactory(builder.build()).getinstance(accesstoken); try { twitter.createfriendship("barackobama",true); } catch (twitterexception e) { log.e("hata : ",e.getmessage()); }
i 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-and-following). message - unable follow more people @ time. learn more http://support.twitter.com/articles/66885-i-can-t-follow-people-follow-limits'>here. code - 161
when use in console twitter can follow people . when try in twitter4j cant follow people why ? can me last lib version 4.0.4
you experience different (more lenient) behaviour official twitter clients web, android , iphone 3rd party clients.
https://support.twitter.com/articles/15364
these limits include actions devices, including web, mobile, phone, api, etc. api requests third-party applications tracked against hourly api limit. people use multiple third-party applications account therefore reach api limit more quickly. more information on topic, please see our api rate limiting page.
Comments
Post a Comment