Open Abdullah-RashedMW opened 5 months ago
@Abdullah-RashedMW log out put says that the login function was called but it crashed the app. Some times this is due a bad sdk configuration. check your info.plist
instead of
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>MY_FB_APP_ID</string>
<string>MY_GOOGLE_CLIENT_ID</string>
</array>
</dict>
</array>
try with , replace 1718579621943661 with your app id
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb1718579621943661</string>
<string>com.googleusercontent.apps.{your-app-specific-url}</string>
</array>
</dict>
</array>
And don't forget to add
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fbapi</string>
<string>fb-messenger-share-api</string>
</array>
What version are you using?
flutter_facebook_auth: 6.0.1
What OS and version are you using to local deploy your application?
macOS 13.2.1
What platforms are you seeing the problem on?
iOS
pubspec.yaml
Describe the Bug
Facebook login function crashes when tapping the button responsible for the signInWithFacebook() function. It crashes right before FacebookAuth.instance. It seems to fail to get an instance on iOS. Same function is used on Android and it is working fine. iOS simulator is on iOS 16.4
Expected Behavior
Redirect to browser to proceed with login.
To Reproduce
No clear ways to reproduce. It was working fine up until very recently. Facebook app is set up correctly. Firebase is set up correctly. It just crashes without giving ant information inside the IDE. I can only see through the log output.
Relevant log output
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response