Simple-Share is an easy drop-in library for sharing on iOS.
- Facebook (facebook-ios-sdk 3.1.1)
- Safari
First checkout the submodules:
git submodule init
git submodule updateThen build the facebook sdk:
cd submodules/facebook-ios-sdk/scripts
./build_framework.shThen run ./build.sh and drop the libsimple-share.a file into your Xcode project.
Copy the include folder also to your project and set the "Header Search Path" to this folder.
For facebook you must also setup the App Id and the URL Scheme: (https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/)
You can share an URL to Facebook with this single line:
[facebookShare shareUrl:[NSURL URLWithString:@"http://www.felixschulze.de"]];
[facebookShare shareText:@"Some text to share"];Twitter:
[simpleTwitterShare shareText:@"Some text to share"];Mail:
[simpleMailShare shareText:@"Some text" subject:@"Some subject" isHTML:NO];Lowest supported iOS is 5.0
The project also includes a sample iOS App
Apache License, Version 2.0 - See LICENSE