iOS Developer Library

Developer

Social Framework Reference

Introduction

Classes  

The Social framework lets you integrate your app with supported social networking services. On iOS and OS X, this framework provides a template for creating HTTP requests. On iOS only, the Social framework provides a generalized interface for posting requests on behalf of the user.

A common way to use this framework is:

  • Create a network session.

  • Get the activity feed for a user.

  • Make a new post.

  • Set properties on a post, add attachments, etc.

  • Publish a post to an activity feed.

Classes

Class

Abstract

NSObject

NSObject is the root class of most Objective-C class hierarchies.

SLComposeSheetConfigurationItem

The SLComposeSheetConfigurationItem class helps you give users ways to configure the properties of a post before posting it.

SLRequest

The SLRequest object encapsulates the properties of an HTTP request, providing a convenient template for you to make requests.

UIViewController

The UIViewController class provides the fundamental view-management model for all iOS apps.

SLComposeServiceViewController

The SLComposeServiceViewController class provides a standard compose view you can present for social sharing extensions on both platforms.

SLComposeViewController

The SLComposeViewController class presents a view to the user to compose a post for supported social networking services.