Hello, I've had this message a few times now. It's fairly critical as now no one can login on Android. They are saying the Android version is using an old SDK. I'm only using this library to login.
Also is this the only Flutter Facebook library? Is anyone maintaining it?
Hi,
In working to create a great Platform experience for everyone, we ask developers to ensure the apps they build comply with our Platform Policies. Your app (-----) doesn't comply with the following Platform Policies:
Platform Policy 8.2: Native iOS and Android apps that implement Facebook Login must use our official SDKs for Login.
Please make sure your Android app is using the most recent version of our SDK for Login. You can find more information on our Android SDK for Login and other Login-related products here: https://developers.facebook.com/docs/facebook-login/android.
You can see our visual example for this policy here: https://developers.facebook.com/policy#7-2-photo.
Since we're striving to improve the Platform experience, your app's ability to do the following has been restricted.
Flutter is not a native app. Dumb Facebook bots...
I think you need to contact Facebook support somehow and let them know.
@alexei-g-aloteq it looks like the Flutter SDK is built on top of the native processes though. So it just needs to be updated on this plugin.
Problem that the plugin does not include mentioned SDK and can not update nor keep it updated.
But you are right - the plugin refers to old version of iOS SDK...
@alexei-g-aloteq this is related to Android...
On Android you manually installing dependencies into gradle, so it should be updated automatically
The SDKs have been updated to latest versions in flutter_facebook_login 3.0.0. Does that fix the issue for you?
@roughike I'll rebuild and get back too you. (Need to push to both app stores). Thanks btw.
@roughike No luck. Bumping the verison breaks iOS.
CocoaPods' output:
↳
Preparing
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
Finding Podfile changes
- Flutter
- camera
- cloud_firestore
- cloud_functions
- firebase_analytics
- firebase_auth
- firebase_core
- firebase_messaging
- flutter_facebook_login
- flutter_image_compress
- flutter_is_emulator
- image_cropper
- image_picker
- in_app_purchase
- path_provider
- shared_preferences
- sqflite
Fetching external sources
-> Fetching podspec for `Flutter` from `.symlinks/flutter/ios-release`
-> Fetching podspec for `camera` from `.symlinks/plugins/camera/ios`
-> Fetching podspec for `cloud_firestore` from `.symlinks/plugins/cloud_firestore/ios`
-> Fetching podspec for `cloud_functions` from `.symlinks/plugins/cloud_functions/ios`
-> Fetching podspec for `firebase_analytics` from `.symlinks/plugins/firebase_analytics/ios`
-> Fetching podspec for `firebase_auth` from `.symlinks/plugins/firebase_auth/ios`
-> Fetching podspec for `firebase_core` from `.symlinks/plugins/firebase_core/ios`
-> Fetching podspec for `firebase_messaging` from `.symlinks/plugins/firebase_messaging/ios`
-> Fetching podspec for `flutter_facebook_login` from `.symlinks/plugins/flutter_facebook_login/ios`
-> Fetching podspec for `flutter_image_compress` from `.symlinks/plugins/flutter_image_compress/ios`
-> Fetching podspec for `flutter_is_emulator` from `.symlinks/plugins/flutter_is_emulator/ios`
-> Fetching podspec for `image_cropper` from `.symlinks/plugins/image_cropper/ios`
-> Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
-> Fetching podspec for `in_app_purchase` from `.symlinks/plugins/in_app_purchase/ios`
-> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
-> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
-> Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
Resolving dependencies of `Podfile`
[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
In snapshot (Podfile.lock):
FBSDKLoginKit (= 4.39.1)
In Podfile:
flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`) was resolved to 0.0.1, which depends on
FBSDKLoginKit (~> 5.5)
Specs satisfying the `FBSDKLoginKit (= 4.39.1), FBSDKLoginKit (~> 5.5)` dependency were found, but they required a higher minimum deployment target.
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:257:in `process_topmost_state'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/resolver.rb:88:in `resolve'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/analyzer.rb:939:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/analyzer.rb:937:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer/analyzer.rb:118:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:398:in `analyze'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:221:in `block in resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/user_interface.rb:64:in `section'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:220:in `resolve_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/installer.rb:156:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command/install.rb:51:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'
Error output from CocoaPods:
↳
[!] Automatically assigning platform `ios` with version `10.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
Error running pod install
You could try deleting <your project>/ios/Podfile.lock and then running pod repo update && pod install in the same ios folder.
@roughike same error. Just FYI Flutter does that automatically when you update packages and rebuild.
I've also experienced the similar issue when I upgrade the plugin into 3.0.0.
Specs satisfying the `FBSDKLoginKit (= 4.39.1), FBSDKLoginKit (~> 5.5)` dependency were found, but they required a higher minimum deployment target.
After I tried to run pod repo update && pod install I got another error.
[!] CocoaPods could not find compatible versions for pod "flutter_facebook_login":
In Podfile:
flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`)
Specs satisfying the `flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`)` dependency were found, but they required a higher minimum deployment target.
@ollydixon & @w4-sglim: To be clear, did you:
<your project>/ios/Podfile.lockIf you skip step number 1, you'll encounter the issue. At least for me and my coworkers, the issue resolves by deleting <your project>/ios/Podfile.lock and then running.
Actually, I already tried to delete the ‘Podfile.lock’ but it was the same as before. And I tried the following:
@roughike it's the first time I've had to do this for any Flutter project for a package (9+ in counting now).
(Project directory)
rm -rf Pods
Tried: pod install
Tried just running the project
Noting works, the library is broken. Going back to 2.0.0 works. :-/
Thank you for helping.
@ollydixon & @sglim could you attach the output of flutter doctor here? I'm on Catalina (had to upgrade to push an iOS 13 related release out), so it might be that our setup is different.
As it's written in the error message, you need to set a higher minimum deployment target.
In you Podfile just uncomment and fix this line:
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
@sroddy I don't have this in the PodFile but it's still failing.
@ollydixon you need that line, and you need it to specify at least version 9.0, otherwise it will fail.
On top of that, please make sure to also have run pod update at least once before running pod install
After uncommenting the line for minimun platform version, remove Podfile.lock, I success to run pod install finally!
Thank you for your helping @sroddy .
@roughike It may be worth to add a line or two inside the readme to explain this.
I deleted all my derived data,
Running
flutter clean
rm -rf ~/Library/Caches/CocoaPods
rm -rf ios/Pods
pod update
Remove the lock files etc.
I tried recreating the project. Running Xcode 11 with 10.14.6 (Mojava). Same errors.
Still get lots of build errors. Not happening when I remove the plugin :-/
@sroddy What's the reason for needing 9.0 to be the minimum deployment target for this plugin?
I saw on #169 that it was bumped from 8.0 to 9.0 and thought it's because of some of the dictionary keys being only available on iOS 9.0. However, it seems that all of the official Flutter plugins always use 8.0 - the iOS plugin template is also set to 8.0.
I'm just thinking if the issue is that all other Flutter projects & the tooling are using 8.0 as the minimum. If so, it might be a little painful for users to update to 9.0 just to use a simple Facebook login SDK and we might want to revert the minimum deployment target back to 8.0.
@roughike well the good news is Android SDK is working great.
The bad news is that with Xcode 11 Flutter release for iOS don't build :-|
I am facing the same issue. I am using 3.0.0 and the login user faces an error "Application Unavailable: The application you're trying to use is either no longer available or access is restricted."
Any advice? Thank you
@OliverNarramore you need to repeal with Facebook, use developer.facebook.com to do this.
@roughike It was probably something that I did without too much reasoning. It might be (but I might also be very wrong here) that when updating the code I've seen that there were issues related to unavailable APIs in previous SDKs that was making the code of this plugin unusable.
But I honestly can't remember... can you please give it a try, and see if rolling back that number doesn't cause any major issue?
Thanks and sorry again for the issue
Most helpful comment
As it's written in the error message, you need to set a higher minimum deployment target.
In you Podfile just uncomment and fix this line: