2

when i try to update the twitter profile picture, i get the following error:

"the operation couldn't be completed. (kCFErrorDomainCFNetwork error 303.)"

I've only added one line of code to the original source code: (in the share function)

[item setCustomValue:@"anything" forKey:@"profile_update"];

note: everything else is working, tweets and img.ly uploads. thank you

4

2 に答える 2

3

彼らは最近これにパッチを当てました。githubでこのコミットアイテムをチェックしてください: https ://github.com/openresearch/ShareKit/commit/cdbf2528da12abf8e3c8ce1f52a577f3737b5939

基本的に、sendImageにチェックを追加して、「profile_update」リクエストであるかどうかに基づいてPOSTとGETを切り替える必要があります。

お役に立てば幸いです。

于 2011-04-11T21:12:53.377 に答える
1

関連しているかどうかはわかりませんが、最初に [request setHTTPMethod:@"POST"]; を呼び出さずに NSMutableURLRequest を使用して POST メッセージを送信しようとすると、このエラーがよく発生します。

于 2011-04-09T19:41:18.427 に答える