Skip to content
Social Framework Addon for openFrameworks iOS
Objective-C++ Objective-C C++ Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
.gitignore
README.md

README.md

ofxiPhoneSocial

Social Framework Integration into openFrameworks on iOS

##Installation

  1. Use project generator or copy ofxiPhoneSocial.h and ofxiPhoneSocial.mm into your project.
  2. Add Social.framework to Linked Frameworks and Libraries in your Xcode project.
  3. Add NSPhotoLibraryUsageDescription to the plist file.

##Usage

You can post directly to Facebook or Twitter. You can also choose from a menu of available services (email, weibo, twitter, etc).

There are three basic functions:

postToFacebook(text, image) postToTwitter(text, image) share(text, image)

Each function is overloaded so you don't have to include an image. You can also share the image via a filename, ofImage or UIImage.

Last but not least, if you want to change what's shown on the share menu, uncomment the follow line in ofxiPhoneSocial.h

activityController.excludedActivityTypes = @[UIActivityTypePostToWeibo, UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard];

Autocomplete will help you but you can also view documentation at http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIActivity_Class/Reference/Reference.html#//apple_ref/occ/cl/UIActivity

Bitdeli Badge

You can’t perform that action at this time.