ShareKit icon indicating copy to clipboard operation
ShareKit copied to clipboard

Drop in sharing features for all iPhone and iPad apps

trafficstars

The code hosted here on github is for ongoing development and contributions and may contain untested code. Please use a stable release from http://getsharekit.com for use in your own app.

Further installation instructions:

  1. At the top of your AppDelegate.m file, be sure to include SHKFacebook.h:

#import "SHKFacebook.h"

  1. In your AppDelegate, include these two methods (or merge if you already use them, remembering to properly delegate):
  • (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { return [SHKFacebook handleOpenURL:url]; }

  • (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [SHKFacebook handleOpenURL:url]; }

  1. In your App-Info.plist, include this property:

     <key>CFBundleURLTypes</key>
     <array>
             <dict>
                     <key>CFBundleURLName</key>
                     <string></string>
                     <key>CFBundleURLSchemes</key>
                     <array>
                             <string>fb${FACEBOOK_APP_ID}</string>
                     </array>
             </dict>
     </array>
    

Where fb${FACEBOOK_APP_ID} looks like fb1234

  1. Finally, in SHKConfig.h, set the facebook API ID:

#define SHKFacebookAppID @"1234"

  1. Follow the standard ShareKit instructions below

To download a stable release visit: http://getsharekit.com/install

Installation instructions: http://getsharekit.com/install

How to add new services: http://getsharekit.com/add

How to customize the look of ShareKit: http://getsharekit.com/customize

Full documentation: http://getsharekit.com/docs


Follow @IdeaShower or http://getsharekit.com/blog for updates