Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.
/ simple-share-ios Public archive

Simple-Share for iOS is an easy drop-in library for sharing. (Facebook, Twitter, Mail, Safari)

License

Notifications You must be signed in to change notification settings

x2on/simple-share-ios

Repository files navigation

Simple-Share for iOS

Overview

Simple-Share is an easy drop-in library for sharing on iOS.

Supported Shares

  • Facebook (facebook-ios-sdk 3.5.1)
  • Twitter
  • Mail
  • Safari
  • Google Chrome

Instructions

First checkout the submodules:

git submodule init
git submodule update

Then build the facebook sdk:

cd submodules/facebook-ios-sdk/scripts
./build_framework.sh

Then 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, App Name and the URL Scheme: (https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/)

You can share an URL to Facebook with this single line:

[facebookShare shareUrl:[NSURL URLWithString:@"http://www.felixschulze.de"]];

Twitter:

[simpleTwitterShare shareText:@"Some text to share"];

Mail:

[simpleMailShare shareText:@"Some text" subject:@"Some subject" isHTML:NO];

Google Chrome:

[googleChromeShare openInChrome:[NSURL URLWithString:@"http://www.felixschulze.de"]];

Compatibility

Lowest supported iOS is 5.0

Sample App

The project also includes a sample iOS App

License

Apache License, Version 2.0 - See LICENSE

About

Simple-Share for iOS is an easy drop-in library for sharing. (Facebook, Twitter, Mail, Safari)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published