面对推特上发布的问题

时间:2012-06-26 05:22:11

标签: iphone ios twitter

请帮助我,我被困在这里

我正在使用twitter引擎api在我的应用程序中集成twitter,我已成功集成并获得时间线。

但在饲料期间我收到以下错误..

请求DEFC2D14-F4A6-4508-A990-ED4219FC2C5C失败并显示错误:错误域= HTTP代码= 401“操作无法完成。(HTTP错误401。)

我无法理解我在做什么,有什么不妥?

提前感谢..

1 个答案:

答案 0 :(得分:0)

试试这个。我用过这个并没有给出任何错误。我希望它也有助于你...

 self.tweetView = [[TWTweetComposeViewController alloc] init];
TWTweetComposeViewControllerCompletionHandler completionHandler=^(TWTweetComposeViewControllerResult result) 
{
};
[tweetView setCompletionHandler:completionHandler];
NSURL *url = [[NSURL alloc] initWithString:tweetURL.text];//in case u need to post a URL

[tweetView setInitialText:textView.text]; //custom text in the tweet
[tweetView addImage:[UIImage imageNamed:@"Twitter-icon-3.png"]]; //add image to post
[tweetView addURL:url];
[self presentModalViewController:tweetView animated:YES];