Skip to content

Drop in sharing features for all iPhone and iPad apps

Notifications You must be signed in to change notification settings

fotonauts/ShareKit

Repository files navigation

**Status Update — Sunday, September 4 2011**

In order to make it easier for new users to choose a canonical fork of ShareKit, the ShareKit community has decided to band together and take responsibility for collecting useful commits into what we're calling "ShareKit 2.0". In the next week or two, we'll be working to test and release the first officially stable version of ShareKit since February, with more frequent updates expected thereafter.

You can follow the initial planning at ideashower/ShareKit#283.

Many thanks to @ideashower for birthing ShareKit. Pending more relevant instructions, here is his original ReadMe, unedited. We'll have more up-to-date instructions posted here soon: https://github.com/ShareKit/ShareKit.

----

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:

0. 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];
}

2. 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

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

#define SHKFacebookAppID      @"1234"

4. 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

About

Drop in sharing features for all iPhone and iPad apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 98.3%
  • C 1.7%