【问题标题】:ISSUE facing to post feed on twitterISSUE 面临在 Twitter 上发布提要
【发布时间】:2012-06-26 05:22:11
【问题描述】:

请帮帮我,我被困在这里

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

但在提要发布期间,我收到以下错误..

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

我无法理解我做错了什么,有什么想法吗?

提前谢谢..

【问题讨论】:

  • 你使用的是哪个框架,ios 5 中的 twitter 还是 twitter 引擎?
  • 当您在短时间内发布重复的提要时,您也会收到此错误。所以请确认,如果你这样做?
  • 我正在使用推特引擎...
  • 感谢@Jennis,但我没有发布它第一次给我的重复提要...

标签: iphone ios twitter


【解决方案1】:

试试这个。我使用了这个,这并没有给出任何错误。希望对你也有帮助...

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多