bengottlieb / Twitter-OAuth-iPhone

An easy way to get Twitter authenticating with OAuth on iPhone
http://www.standalone.com
799 stars 155 forks source link

Error 403 while getFollowers : Twitter Iphone MGTwitterEngine #75

Closed amitbattan closed 13 years ago

amitbattan commented 13 years ago

Hi All

I am using Twitter-OAuth-iPhone https://github.com/bengottlieb/Twitter-OAuth-iPhone I am calling [twitterObj getFollowersIncludingCurrentStatus:NO] for getting my friend list which was working fine. But from last two days its giving me the 403 error.

-- Twitter Request FD751461-39C4-4EAB-A0F7-D1ED262B19EA failed with error: Error Domain=HTTP Code=403 "The operation couldn’t be completed. (HTTP error 403.)"

As twitter api wiki 403 is due to crossing the limit of updates and DM

but here in getFollowersIncludingCurrentStatus Why this error occurring and even list is not comes next day giving same 403 error.

I also mail the issue to twitter they reply me Sorry to hear about this. Unfortunately, Twitter cannot provide technical support for any third-party libraries. We first recommend that you contact the author of the Twitter-OAuth-iPhone library to see if this is a known issue (possibly interpreting error codes incorrectly).

Thanks Amit Battan

amitbattan commented 13 years ago

these are two URL one is working and other is not working

Working : https://twitter.com/statuses/friends_timeline.xml Not Working - Error 403 : https://twitter.com/statuses/followers.xml

twitter person reply me Neither of these URLs are officially supported anymore. API endpoints must begin with http://api.twitter.com/1/* now. Furthermore, the statuses/followers method has been deprecated. Please see http://dev.twitter.com/doc/get/statuses/followers for more information.

amitbattan commented 13 years ago

it is solved now I change #define TWITTER_DOMAIN @"twitter.com" to #define TWITTER_DOMAIN @"api.twitter.com/1" in MGTwitterEngine.m