Skip to main content

Facebook SDK for iOS

The official open-source SDK to integrate Facebook platform features — Login, Sharing, Graph API, App Events, and Gaming Services — into your iOS and tvOS applications.

What you can build

Facebook Login

Add secure, one-tap login with Facebook accounts. Supports OAuth 2.0, OpenID Connect, and privacy-friendly Limited Login for iOS 14+.

Content Sharing

Let users share links, photos, and videos directly to Facebook from your app using native share dialogs.

Graph API

Query the Facebook Graph API to access user data, pages, and more using authenticated requests from your iOS app.

App Events

Track user actions, conversions, and in-app purchases to measure campaign performance and understand user behavior.

Gaming Services

Build social gaming experiences with context dialogs, game requests, tournaments, and media uploads.

App Links

Handle deep links and deferred deep links to route users to specific content inside your app.

Installation

Add the SDK to your project using your preferred package manager:
# In Xcode: File > Add Package Dependencies
# Enter the repository URL:
https://github.com/facebook/facebook-ios-sdk

Full installation guide

Learn how to configure your Xcode project, set up your App ID, and configure URL schemes.

SDK modules

The Facebook SDK for iOS is composed of focused modules — include only what your app needs:
ModulePackage nameDescription
CoreFacebookCoreBase SDK — required by all other modules
LoginFacebookLoginFacebook Login and access token management
ShareFacebookShareShare dialogs for links, photos, and videos
Gaming ServicesFacebookGamingServicesGaming context, requests, and tournaments
AEMFacebookAEMAggregated Event Measurement for ad attribution

Latest release

The current stable version is v18.0.3, supporting iOS 12+ and tvOS 12+.

Changelog

See what’s new in each release

Migration guide

Upgrading from an earlier version

Build docs developers (and LLMs) love