mattgemmell / MGTwitterEngine

Objective-C Twitter integration library for Mac OS X and iPhone. Official repository.
http://mattgemmell.com/source
1.14k stars 164 forks source link

Error 403 while getFollowers : Twitter Iphone MGTwitterEngine #88

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.

these are two URL which I get using NSLog 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

I also mail the issue to twitter they 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.

Thanks Amit Battan

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