Mac 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

NSObject

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

SLRequest

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

NSViewController

A view controller manages a view, typically loaded from a nib file.

SLComposeServiceViewController

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