The SDK supports three package managers. Choose the one that matches your project’s tooling. You only need to add the modules your app uses — you don’t have to include the entire SDK.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/facebook/facebook-ios-sdk/llms.txt
Use this file to discover all available pages before exploring further.
All modules require FacebookCore (or FBSDKCoreKit in CocoaPods/Carthage) as a transitive dependency. You don’t need to add it explicitly when installing other modules.
- Swift Package Manager
- CocoaPods
- Carthage
Swift Package Manager is the recommended approach for new projects.
Enter the repository URL
Paste the following URL into the search field:Select the repository from the results and choose a version rule. Use Up to Next Major Version starting from
18.0.3 to receive non-breaking updates automatically.Select the modules you need
Xcode will list the available package products. Add only the ones your app requires:
Click Add Package.
| Product | Use when you need |
|---|---|
FacebookCore | App events, Graph API, access tokens |
FacebookLogin | Facebook Login |
FacebookShare | Share and message dialogs |
FacebookGamingServices | Gaming integrations |
FacebookAEM | Aggregated Event Measurement |