Search code examples
iphoneobjective-csharekit

ShareKit twitter profile picture update error


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


Solution

  • 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!