Modules
The SDK is split into focused modules so you only include what your app needs.FacebookCore
The foundation of the SDK. Provides app events, Graph API access, access token management, and user profiles. Required by all other modules.
FacebookLogin
Facebook Login lets users sign in to your app with their Facebook account. Handles authentication tokens and permissions.
FacebookShare
Share dialogs and message dialogs for posting content — links, photos, and videos — to Facebook from your app.
FacebookGamingServices
Gaming-specific integrations including tournaments, game requests, and Friend Finder for Facebook Gaming.
FacebookAEM
Aggregated Event Measurement (AEM) for privacy-preserving conversion reporting on iOS 14+.
Platform requirements
| Requirement | Minimum version |
|---|---|
| iOS | 12.0 |
| tvOS | 12.0 |
| Swift | 5.3 |
| Xcode | 12.0 |
What you can build
- Authentication — Let users log in with Facebook and request permissions like
emailandpublic_profile. - Social sharing — Add share sheets so users can post to their timeline or send messages.
- Analytics — Log app events automatically or manually and view them in Meta Events Manager.
- Graph API — Make authenticated requests to the Facebook Graph API to read and write social data.
- App Links — Deep-link users back into your app from Facebook content.
Next steps
Installation
Add the SDK to your project using Swift Package Manager, CocoaPods, or Carthage.
Quickstart
Configure your app ID, set up your URL scheme, and get Facebook Login running in minutes.