ShareKit/ShareKit — Issue #265: Modernize the canShareTYPE to canShareItem: 
Author: Cocoanetics
Created: 2012-02-26 10:48:23+00:00
State: open

Currently a sharer is asked whether it can share certain types of SHKItems. This only works if the item can be categorized in on of the existing types.

This leads a problem for this case: Share an item from a catalog, you have a product image, a webshop URL and the name of the product as title

You want to:

- share as msg + URL on Facebook (because we want it in Facebook wall, not the Foto album)
- share as msg + URL + image on Twitter
- share as image on Flickr

I propose that we completely remove the canShareType methods and instead as the sharer if it can deal with a certain item.

For situations where an item can be shared multiple ways I propose a delegate protocol where the sharer can ask the item for the preferred sharing type. This protocol would also match a property of the same name on SHKItem where you can set the preferred sharing type. So you could set that to be shared as image or as URL on FB.

This is how the iOS 5 tweet sheet works. You don't have to specify a type, but instead you just set properties (URL, image, message).