0

ここで立ち往生している私を助けてください

TwitterエンジンAPIを使用してアプリにTwitterを統合しています。統合に成功し、タイムラインも取得しています。

しかし、フィード投稿中に次のエラーが発生します..

要求 DEFC2D14-F4A6-4508-A990-ED4219FC2C5C が次のエラーで失敗しました: エラー ドメイン = HTTP コード = 401 "操作を完了できませんでした。(HTTP エラー 401.)

私は何が間違っているのか理解できません。何か考えはありますか?

前もって感謝します..

4

1 に答える 1

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];
于 2012-06-26T05:44:34.980 に答える