Component SDKs of the Facebook SDK for iOS

The Facebook SDK for iOS consists of five component SDKS:

+---------------+-------------+--------------+----------------+---------------+
|     Login     |    Share    |     Places   | MessengerShare |    Strings    |
| 2.3 MB + Core | 8 MB + Core | 0.5MB + Core |  1 MB + Core   |               |
|  = 21.5 MB    |  = 27.2 MB  |   = 19.7 MB  |   = 20.2 MB    |    -from-     |
+---------------+-------------+--------------+----------------+     12 KB     |
|                      Core                       +--------+  |   (en only)   |
|                  17 MB + Bolts                  | Bolts  |  |     -to-      |
|                    = 19.2 MB                    | 2.2 MB |  |    356 KB     |
|                                                 +--------+  | (all locales) |
+-------------------------------------------------------------+---------------+
    

If you don't need the functionality of the full iOS SDK, you can save space by using only the SDK(s) you need to support the Facebook products you want to use in your app.

Note that when you use one of the Facebook SDKs, events in your app are automatically logged and collected for Facebook Analytics unless you disable automatic event logging. For details about what information is collected and how to disable automatic event logging, see Automatic App Event Logging.

CocoaPods

For more information about using CocoaPods with your app, see the CocoaPods Getting Started Guide. Make sure you have the CocoaPods gem installed on your machine before attempting to install any Facebook pods.

In your Podfile, add the pod commands for the specific pods you are using in your app. You do not need to include all of commands if you are not using all the pods.

pod 'FBSDKCoreKit'  
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
pod 'FBSDKPlacesKit'
pod 'FBSDKMessengerShareKit'

Navigate to your project folder in a terminal window, and run the following command:

pod install

Configure your plist with your FacebookAppID, FacebookDisplayName, and the necessary CFBundleURLSchemes:

<plist version="1.0">
  <dict>
    <key>FacebookAppID</key>
    <string>{your-app-id}</string>
    <key>FacebookDisplayName</key>
    <string>{your-app-name}</string>
    <key>CFBundleURLTypes</key>
    <array>
      <dict>
      <key>CFBundleURLSchemes</key>
      <array>
        <string>fb{your-app-id}</string>
      </array>
      </dict>
    </array>
  </dict>
</plist>

Download

You can also download the entire iOS SDK.

Download the SDK