/TBSocial

Simple Social Sharing for iOS 7

Primary LanguageObjective-CGNU General Public License v2.0GPL-2.0

TBSocial

Simple Social Sharing for iOS 7

Features

  • Share content to Facebook (Native)
  • Share content to twitter (Native)
  • Share photo and caption to instagram
  • Share photo to LINE App

Requirements

  • ARC only; iOS 7.0+
  • Social.framework

Get it as source files

  1. Download the TBSocial repository as a zip file or clone it
  2. Copy the TBSocial sub-folder into your Xcode project
  3. Link your app to Social.framework

Basic usage

Share to Facebook with code:

 [TBSocial shareFacebookWithText:shareText andURL:shareURL andImage:shareImage inView:self]; 

Share to Twitter with code:

[TBSocial shareTwitterWithText:shareText andURL:shareURL andImage:shareImage inView:self];

Share to Instagram with code:

if ([TBSocial isInstagramInstalled]) {
  // height 612px & width 612px
  if ([TBSocial isInstagramImageCorrectSize:shareImage]) {
     [TBSocial shareInstagramImageWithCaption:shareCaption andImage:shareImage inView:self.view];
  } else {
    NSLog(@"Image size is incorrect!");
  }
}

Share to LINE with code:

// Share Text Only
[TBSocial shareLineText:shareText]
// Share Image Only
[TBSocial shareLineImage:shareImage];