Skip to main content
The Facebook SDK for iOS is an open-source library that gives your app access to the Facebook platform. Use it to authenticate users with Facebook Login, share content, log app events for analytics, access the Graph API, and integrate with Facebook Gaming Services. The current release is v18.0.3, targeting iOS 12+ and Swift 5.3+.

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

RequirementMinimum version
iOS12.0
tvOS12.0
Swift5.3
Xcode12.0

What you can build

  • Authentication — Let users log in with Facebook and request permissions like email and public_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.

Build docs developers (and LLMs) love