2012-06-26 59 views
0

請幫助我,我M}這裏ISSUE面對張貼在Twitter的飼料

我使用Twitter引擎API在我的應用程序集成的Twitter stucked,我已經成功地和獲取時間太行集成它。

但飼料後即時得到下面的錯誤中..

請求DEFC2D14-F4A6-4508-A990-ED4219FC2C5C失敗,錯誤:錯誤域= HTTP代碼= 401「的操作無法完成。 (HTTP錯誤401)

我不能夠理解什麼是錯的即時通訊做,什麼想法?

在此先感謝..

+1

哪個框架是你使用的,twitter在ios 5或twitter引擎? – vishy

+0

當您在短時間內發佈重複Feed時,您也會收到此錯誤。所以請確認,如果你這樣做? –

+0

我正在使用Twitter引擎... – Abhishek

回答

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]; 
+0

這使用Twitter框架。不要忘記包含頭文件.. – Nishant

+0

我不使用ios5我沉思微博引擎.. 任何方式謝謝你的回覆.. – Abhishek