facebook-ios-sdk icon indicating copy to clipboard operation
facebook-ios-sdk copied to clipboard

Latest SDK version (13.2.0) incompatible with Graph API v14.0 for newly created apps

Open jlandon opened this issue 2 years ago • 0 comments

Checklist before submitting a bug report

Xcode version

13.3

Facebook iOS SDK version

13.2.0

Dependency Manager

CocoaPods

SDK Framework

Core

Goals

SDK release that supports the latest Graph API version (v14.0)

Expected results

  • Support for Graph API v14.0
  • Recognition in Facebook developer console that the integrated SDK version is up to date

Actual results

  • SDK uses Graph API v13.0 for app which only supports v14.0+
  • Facebook developer console indicates the app SDK is out of date

Steps to reproduce

  1. Create new Facebook app (e.g. Consumer app type)
  2. Add iOS platform to the app
  3. Integrate latest SDK version (13.2.0) using Cocoapods (https://developers.facebook.com/docs/ios/getting-started/)
  4. Enable all logs
  5. Build and run app

Result

FBSDKLog: Response <#1132>
Duration: 558 msec
Size: 258 kB
Response Body:
(
        {
        body =         {
            "__debug__" =             {
                messages =                 (
                                        {
                        link = "https://developers.facebook.com/docs/apps/versions/";
                        message = "The app tried to call version v13.0. The API version specified is unavailable, so the request defaulted to version v14.0.";
                        type = warning;
                    }
                );
            };
            data =             (
            );
        };
        code = 200;
    }
)

Facebook Events Manager

Facebook Event Manager

Facebook Developer Console

Facebook Developer Console

Versioning

According to Platform Versioning, it is expected behavior for apps to only support Graph API versions available at the time of creation/usage:

You can specify older versions in your API calls as long as they are available and your app has made calls to that version. For example, if your app was created after v2.0 was released and makes calls using v2.0, it will be able to make calls to v2.0 until the version expires even after newer versions have been released. If you created your app after v2.0 but did not make any calls until v2.2, your app will not be able to make calls using v2.0 or to v2.1. It will only be able to make calls using v2.2 and newer versions.

However, the current problem exists because the latest version of the iOS SDK doesn't yet support Graph API v14.0.

Is there an ETA for an SDK release that supports the latest Graph API version?

jlandon avatar May 26 '22 21:05 jlandon