Facebook SDK upgraded to 18.0.3 on iOS and 18.1.3 on Android.
- Update your project to Flutter 3.38.0 or newer.
- Update
minSdkVersionto 24 if your app still uses a lower value. - If your Android project still uses the old pre-plugin-DSL Gradle setup, migrate it to the current Flutter/Gradle configuration before upgrading.
- Update minimum deployment target to iOS 13 if you have a lower version now.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
If the iOS build fails after upgrading to 3.0.0 and the errors mention Facebook SDK API mismatches such as:
- incorrect argument labels around
ApplicationDelegate; - missing members on
Profile; LoginConfigurationinitializer orLoginManager.logInnot found;
For example, you may see errors like:
Incorrect argument label in call (have '_:didFinishLaunchingWithOptions:', expected '_:continue:')Type 'Profile' has no member 'current''LoginConfiguration' cannot be constructed because it has no accessible initializersValue of type 'LoginManager' has no member 'logIn'
then the most likely cause is an outdated Xcode version.
Solution: update Xcode to version 26 and rebuild the project.
If Xcode build fails with an error similar to:
Error (Xcode): Sandbox: rsync(...) deny(1) file-read-data
then disable user script sandboxing for the iOS target.
Solution: set ENABLE_USER_SCRIPT_SANDBOXING to NO in Xcode Build Settings.
Facebook SDK upgraded to 17.0.2 version.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 17.0 version.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 16.2 version.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 16 version.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 15.1 version.
- Update
minSdkVersioninandroid/app/build.gradleto 21 if you have smaller version before.
- Update minimum deployment target to iOS 12 if you have smaller version before.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 14.1 version.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 13 version.
- Update minimum deployment target to iOS 11 if you have smaller version before.
- Go to
/iosdirectory of your project, and:- run
pod repo update; - run
pod update. That's for upgrading native dependencies.
- run
- Also
flutter cleanmay be required.
Facebook SDK upgraded to 12.3 version.
- Add
facebook_client_tokeninstrings.xmlandcom.facebook.sdk.ClientTokenmeta inAndroidManifest.xml. - You can remove now:
app_nameandfb_login_protocol_schemefromstring.xml;- activities
com.facebook.FacebookActivityandcom.facebook.CustomTabActivityfromAndroidManifest.xml.
See Android - Edit Your Resources and Manifest in README.
- Edit
Info.plist(inios/Runner/):- add
FacebookClientToken; - you can remove now most of items in
LSApplicationQueriesSchemes, exceptfbapiandfb-messenger-share-api.
- add
- You should run
pod updatein/iosdirectory for you project. That's for upgrading native dependencies. - Also
flutter cleanmay be required.
See iOS - Configure Your Project in README.
Facebook SDK upgraded to 12 version.
- Update minimum deployment target to iOS 10 if you have smaller version before.
- You should run
pod updatein/iosdirectory for you project. That's for upgrading native dependencies. - Also
flutter cleanmay be required.
Facebook SDK upgraded to 11 version.
You should run pod update in /ios directory for you project. That's for upgrading native dependencies.
Also flutter clean may be required.
Facebook SDK upgraded to 9.0.
You should run pod update in /ios directory for you project. That's for upgrading native dependencies.
Also flutter clean may be required.