Upgrade notes for AIRFacebook 1.3.0

Posted: September 16, 2015

With the introduction of iOS 9, Facebook released updated SDK for iOS that uses new iOS 9 features like SFSafariViewController.

Required changes

The AIRFacebook extension v1.3.0 includes Facebook SDK v4.6.0 for both iOS and Android. You may continue using AIRFacebook v1.2.0, however, if you want to use v1.3.0 now, you’ll need to use AIR SDK v18 and update your iPhone/InfoAdditions node inside your application descriptor XML with the following:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
</array>

Optional changes

While not necessary for AIR SDK v18 or v19, you may want to add the following snippet to iPhone/InfoAdditions node as well to avoid problems with your application in the future once AIR SDK starts compiling against newer iOS SDK:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>facebook.com</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>                
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>fbcdn.net</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
        <key>akamaihd.net</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSExceptionRequiresForwardSecrecy</key>
            <false/>
        </dict>
    </dict>
</dict>

If you’re using AIRFacebook v1.2.0 or older then add the following:

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fbapi20130214</string>
    <string>fbapi20130410</string>
    <string>fbapi20130702</string>
    <string>fbapi20131010</string>
    <string>fbapi20131219</string>    
    <string>fbapi20140410</string>
    <string>fbapi20140116</string>
    <string>fbapi20150313</string>
    <string>fbapi20150629</string>
    <string>fbauth</string>
    <string>fbauth2</string>
    <string>fb-messenger-api20140430</string>
    <string>fb-messenger-platform-20150128</string>
    <string>fb-messenger-platform-20150218</string>
    <string>fb-messenger-platform-20150305</string>
</array>

For more information about these changes, visit the Facebook developer docs.

To find out which Facebook SDK your version of AIRFacebook is using, visit AIRFacebook FAQ page.