Skip to content
Browse files

readme

  • Loading branch information...
1 parent 527c4c3 commit 447dba7e2d4b0e70bb1ff333c63314525748fa69 @ntaku committed Jul 3, 2012
Showing with 26 additions and 11 deletions.
  1. +3 −0 .gitignore
  2. +1 −1 ASFBPost/ASFBPost-Info.plist
  3. +1 −1 ASFBPost/ASFBPost-Prefix.pch
  4. +21 −9 README.md
View
3 .gitignore
@@ -13,3 +13,6 @@ build/*
xcuserdata
profile
*.moved-aside
+.DS_Store
+*.DS_Store
+
View
2 ASFBPost/ASFBPost-Info.plist
@@ -27,7 +27,7 @@
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
- <string>fb118794958250378</string>
+ <string>fb1234567</string>
</array>
</dict>
</array>
View
2 ASFBPost/ASFBPost-Prefix.pch
@@ -18,7 +18,7 @@
// Facebook
-#define FB_APP_ID @"118794958250378"
+#define FB_APP_ID @"1234567"
#define FB_PERMISSIONS @"publish_stream"
View
30 README.md
@@ -1,19 +1,11 @@
![Screenshot1](https://dl.dropbox.com/u/339699/github/ASFBPostController.png)
-
ASFBPostController
==================
ASFBPostController provides photo posting function to Facebook. You can easily integrate Facebook post function to you iOS app.
-The ASFBPostController is licensed under the Apache License, Version 2.0 as same as the Facebook SDK.
-
-http://www.apache.org/licenses/LICENSE-2.0.html
-https://github.com/facebook/facebook-ios-sdk/
-
-
-Setup
-==================
+# Installation
1. Create your iOS facebook App.
2. Replace sample ID with your Facebook App ID.
@@ -26,3 +18,23 @@ FB_APP_ID @"1234567"
URL types > Item 0 > URL Schemes > Item 0 > fb1234567
+# Usage
+
+ ASFBPostController *c = [[ASFBPostController alloc] init];
+ c.thumbnailImage = [UIImage imageNamed:@"sample_thumb.jpg"];
+ c.originalImage = [UIImage imageNamed:@"sample.jpg"];
+
+ UINavigationController *n = [[UINavigationController alloc] initWithRootViewController:c];
+ n.modalPresentationStyle = UIModalPresentationFormSheet;
+ [c release];
+
+ [self presentModalViewController:n animated:YES];
+ [n release];
+
+License
+==================
+The ASFBPostController is licensed under the Apache License, Version 2.0 as same as the Facebook SDK.
+
+http://www.apache.org/licenses/LICENSE-2.0.html
+
+https://github.com/facebook/facebook-ios-sdk/

0 comments on commit 447dba7

Please sign in to comment.
Something went wrong with that request. Please try again.