Error 403 while getFollowers : Twitter Iphone MGTwitterEngine

Deadly 提交于 2019-12-19 10:49:28

问题


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.

Thanks
Amit Battan


回答1:


it is solved now

I change

#define TWITTER_DOMAIN          @"twitter.com"

to

#define TWITTER_DOMAIN          @"api.twitter.com/1"

in MGTwitterEngine.m




回答2:


Thanks for this! it helped me a bunch! I would like to add to anyone coming to this for answers that while calling out with this method works you still have to make adjustments elsewhere....

First you have to make sure you parse this correctly in your dictionary .... This is the one case I found "user" is NOT the main array. In fact there is no array it is just strings for example in "statuses received you want to call out @"user" @"screen_name" with retrieving your followers which is under "userInfoRecieved" you will just parse the string @"screen_name" .

At least this is how it worked for me!

One thing I would love to find out is how to retrieve more then 100. I have almost 1,000 followers and can only see 100.

I would also like to know how to retrieve the users I follow so I can place that into a popOverController with a tableview whenever a texfield is pressed so you can easily @Mention a friend!!!

@Amit if you have anything to add or any solutions for those few things I have stated please jump in and enlighten me.




回答3:


this url not work , and not response , its show the errorhttps://twitter.com/statuses/friends_timeline.xml working fine, . . . . https://twitter.com/statuses/followers.xml

change it

define TWITTER_DOMAIN @"twitter.com"

to

define TWITTER_DOMAIN @"api.twitter.com/1"

in you .m class of twitter engine



来源:https://stackoverflow.com/questions/6328510/error-403-while-getfollowers-twitter-iphone-mgtwitterengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!