forked from ShareKit/ShareKit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
66 lines (46 loc) · 1.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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