I have double checked my Authentication credentials, it has been authenticated, besides, I can tweet and retweet messages via my app by using xAuth.
On 3 May 2011, at 03:44, Bess wrote: > http://apiwiki.twitter.com/w/page/22554652/HTTP-Response-Codes-and-Errors > 401 Unauthorized: Authentication credentials were missing or > incorrect. > > Possible that your xAuth has been rejected? > > On Apr 28, 1:36 am, Matt Wang <[email protected]> wrote: >> Dear Sir or Madam, >> >> I am programming for Number 10 iphone application.Currently,this >> application has xAuth access and can post information via twitter. >> >> However, when I try to call [twitterEngine >> enableUpdatesFor:@"follower"] for adding a follower. it will return a >> 401 error. >> >> here is my code: >> >> - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString >> *)connectionIdentifier { >> >> [self.twitterEngine setAccessToken:token]; >> >> } >> >> - (void)requestSucceeded:(NSString *)requestIdentifier{ >> >> switch (stage) { >> case postLogin: >> >> stage = loginCorrect; >> break; >> case loginCorrect: >> >> if (twitterAction == follow) { >> NSString *follower = [NSString >> stringWithFormat:@"Number10gov"]; >> NSLog(@"Try to Follow %@",follower); >> NSLog(@"enableUpdatesFor: >> connectionIdentifier = %@", >> [twitterEngine enableUpdatesFor:follower]); >> >> } else if (twitterAction == retweet || twitterAction >> == tweet) { >> ............... >> // >> >> post and retweet work well. but follow action didn't work. could you >> help me to point out what is the problem? >> >> if you can give me a example code to show how to do follow action in >> xAuth, that would be great. >> >> Many Thanks for your help. >> >> I am looking forward to your reply. >> >> Many thanks. > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
