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: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:| Module | Package name | Description |
|---|---|---|
| Core | FacebookCore | Base SDK — required by all other modules |
| Login | FacebookLogin | Facebook Login and access token management |
| Share | FacebookShare | Share dialogs for links, photos, and videos |
| Gaming Services | FacebookGamingServices | Gaming context, requests, and tournaments |
| AEM | FacebookAEM | Aggregated 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