Share content for Facebook from an iOS 5 app

I am developing an iOS 5 application, and I would like the user to be able to share on Facebook some content from the application, for example, text or images. I tried to implement Sharekit (built-in wil and modified 2.0) and Addthis, but no one worked. How can I do it? I was very close when I implement Sharekit 2.0 (modified fork), but it made some problems related to armv7. Is there any way to fix them? Thanks everyone!

+8
iphone facebook ios5 share sharekit
source share
3 answers

I highly recommend using the SDK for Facebook. Here's a very thorough form: Facebook iOS SDK . After you follow the instructions and authorize your Facebook account, you can use the Graph API calls to publish various things (for example, placing a link using the Graph API):

NSMutableDictionary *params = [NSMutableDictionary dictionary]; [params setObject:@"Test post" forKey:@"message"]; [params setObject:@"link" forKey:@"type"]; [params setObject:@"http://yoursite.com" forKey:@"link"]; [params setObject:@"Link description" forKey:@"description"]; NSString *graphPath = @"me/feed"; [facebook requestWithGraphPath:graphPath andParams:params andHttpMethod:@"POST" andDelegate:self]; 
+11
source share

If you do not want to request additional permissions, you can use the Channel Dialog for iOS:

https://developers.facebook.com/docs/howtos/feed-dialog-using-ios-sdk/

+4
source share

If you are using the sharekit version of IdeaShower, it is no longer supported. Try the following:

https://github.com/ShareKit/ShareKit

This is relevant, and many people keep it up to date.

+3
source share

All Articles