iOS SDK Version

Facebook SDK for iOS

CocoaPodsCarthage compatible
This open-source library allows you to integrate Facebook into your iOS app.
Learn more about the provided samples, documentation, integrating the SDK into your app, accessing source code, and more at
Please take a moment and subscribe to releases so that you can be notified about new features, deprecations, and critical fixes. To see information about the latest release, consult our changelog.


Swift Package Manager (available Xcode 11.2 and forward)

  1. In Xcode, select File > Swift Packages > Add Package Dependency.
  2. Follow the prompts using the URL for this repository and a minimum semantic version of v5.10.0
  3. Check-out the tutorials available online at:
  4. Start coding! Visit for tutorials and reference documentation.
Note for Swift Package Manager Users:
If you explicitly DO NOT want to include Swift, import FBSDKCoreKitFBSDKLoginKit and FBSDKShareKit
For projects that include Swift, use FacebookCore, FacebookLogin, and FacebookShare


  1. Add the following to your Podfile:
    pod 'FBSDKCoreKit' pod 'FBSDKLoginKit' pod 'FBSDKShareKit' 
  2. Test your install by adding import FBSDKCoreKit to your AppDelegate
  3. Check-out the tutorials available online at:
  4. Start coding! Visit for tutorials and reference documentation.



Please report bugs or issues to our designated developer support team – – as this will help us resolve them more quickly.
You can also visit our Facebook Developer Community Forum, join the Facebook Developers Group on Facebook, ask questions on Stack Overflow, or open an issue in this repository.


See the LICENSE file.


See the SECURITY POLICY for more info on our bug bounty program.


  • By enabling Facebook integrations, including through this SDK, you can share information with Facebook, including information about people’s use of your app. Facebook will use information received in accordance with our Data Use Policy, including to provide you with insights about the effectiveness of your ads and the use of your app. These integrations also enable us and our partners to serve ads on and off Facebook.
  • You may limit your sharing of information with us by updating the Insights control in the developer tool{app_id}/settings/advanced.
  • If you use a Facebook integration, including to share information with us, you agree and confirm that you have provided appropriate and sufficiently prominent notice to and obtained the appropriate consent from your users regarding such collection, use, and disclosure (including, at a minimum, through your privacy policy). You further agree that you will not share information with us about children under the age of 13.
  • You agree to comply with all applicable laws and regulations and also agree to our Terms, including our Platform Policies Advertising Guidelines, as applicable
By using the Facebook SDK for iOS you agree to these terms.