开发者

ShareKit twitter profile picture update error

开发者 https://www.devze.com 2023-02-22 01:51 出处:网络
when i try to update the twitter profile picture, i get the following erro开发者_运维问答r: \"the operation couldn\'t be completed. (kCFErrorDomainCFNetwork error 303.)\"

when i try to update the twitter profile picture, i get the following erro开发者_运维问答r:

"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


They've recently patched this. Check out this commit item on github: https://github.com/openresearch/ShareKit/commit/cdbf2528da12abf8e3c8ce1f52a577f3737b5939

Basically you need to add a check in sendImage to switch between POST and GET based on if it's a "profile_update" request.

Hope that helps!


I don't know if it's related, but this error is often encountered when attempting use an NSMutableURLRequest to send a POST message without first calling [request setHTTPMethod:@"POST"];

0

精彩评论

暂无评论...
验证码 换一张
取 消