You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
0.32.0
Breaking: upgrade to Facebook SDK v19 (fixes #507). Android now depends on com.facebook.android:facebook-android-sdk:[19.0,20.0); iOS on FBSDKCoreKit~> 19.0 (CocoaPods) / "19.0.0"..<"20.0.0" (SPM). None of the native APIs the plugin calls changed, so the Dart API is unchanged.
Breaking (iOS): the minimum iOS version is now 15.0 (was 13.0), because Facebook iOS SDK v19 requires it. Apps targeting iOS 13 or 14 must raise their deployment target (and the platform :ios line in their Podfile, if set) to 15.0. See "Configure iOS" in the README. CocoaPods apps upgrading from 0.31.x or older must also run cd ios && pod update FBSDKCoreKit once: their Podfile.lock still pins FBSDKCoreKit 18.x, and pod install (and the pod repo update that Flutter suggests) will not move it, failing with "changed the constraints of dependency FBSDKCoreKit inside your development pod facebook_app_events".
Behavior change from the SDK: AutoLogAppEventsEnabled = false now always wins. In SDK v18 an Events Manager setting could override the client-side flag; in v19 automatic app event logging runs only when both the client flag (FacebookAutoLogAppEventsEnabled / com.facebook.sdk.AutoLogAppEventsEnabled / setAutoLogAppEventsEnabled) and the Events Manager setting are on.
New in the SDK: event metadata collection. SDK v19 attaches the current screen title and the inbound URL to logged events by default, and on iOS also the last outbound URL the app opened (outbound_url). The inbound URL is any URL that opened the app, query string included (custom-scheme deep links and OAuth or magic-link callbacks too), not only App Links; both URLs are persisted on the device across launches. Apps can opt out with FBSDKAutoLogMetaDataEnabled (iOS Info.plist) / com.facebook.sdk.AutoLogMetaDataEnabled (Android manifest), or in Events Manager. On iOS, collection is installed as part of SDK initialization, so FacebookAutoInitEnabled=false still defers it. On Android it does not: inbound URLs are captured and written to disk from process start even with com.facebook.sdk.AutoInitEnabled=false, so consent-gated apps that want nothing collected before consent need the manifest opt-out. Documented in the README.
The Graph API version pin stays at v24.0 on both platforms: the Android SDK v19.0.0 still defaults to the removed v16.0, so the override is still needed. Docs and code comments now reflect that the iOS SDK default has been v26.0 since 18.1.1.
Add setAutoLogMetaDataEnabled(bool) (fixes #511): runtime control of the SDK v19 event metadata collection described above, mapping to FacebookSdk.setAutoLogMetaDataEnabled (Android) and Settings.shared.isMetaDataCollectionEnabled (iOS). The value is persisted and takes precedence over the manifest / Info.plist key, so a consent-gated app can ship with the static opt-out and turn collection on after consent; false also clears the URLs already stored on the device. On iOS it is gated behind initializeSdk() like the other Settings setters. The example app has buttons for both states.
The example app's iOS deployment target is raised to 15.0.
Update Android toolchain — Kotlin 2.4.21 (was 2.4.20) in the example app and Gradle wrapper 8.14.6 (was 8.14.5), in the plugin, the example app and the build-verify workflow. AGP (8.13.0) and compileSdk/targetSdk (36) are unchanged.