FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

Android: MissingPluginException(No implementation found for method login on channel app.meedu/flutter_facebook_auth) #4976

Open suhailbilalw opened 4 days ago

suhailbilalw commented 4 days ago

Can we access your project?

Current Behavior

Facebook login is throwing error.

Expected Behavior

should open facebook intent to login.

Steps to Reproduce

create a page. place a button. add onPressed event authentication "facebook login" from the actions. test on android.

Reproducible from Blank

Bug Report Code (Required)

IT4ghefluYtPvsdY0aruYO9ViiEQOUh7a600st5Hd0gdCOPrBqQEZfeldk5uXtCraVNcC2KJpD0FwcmMv4TTNfY6Fw2Zc6J6+s9iFBb0e2iXVc2OBbqwRHd7GexYG0yOyImJnwhQHOx2L14k3V6QfOSsQjHDFOu/Zwh9f6PHaOI=

Visual documentation

try implementing facebook login via android.

Environment

- FlutterFlow version: v5.0.0
- Platform: Android
- Browser name and version: Chrome 131.0.6778.86 (Official Build) (64-bit)
- Operating system and version affected: Win 11

Additional Information

No response

paulperez-dev commented 3 days ago

Hi @suhailbilalw,

I tried running your project locally to test the integration, but unfortunately, I wasn’t able to. Have you been able to run the project locally on a real device?

suhailbilalw commented 3 days ago

Hello @paulperez-dev, Could happen because several files in the project are manually modified and app branch is the main branch. But if you will create a new fresh project, I'm sure facebook login will not work on android. flutter_facebook_auth library author has mentioned the issue in his documentation, saying it needs additional configuration. Please go through the documentation once as well.

suhailbilalw commented 3 days ago

E/flutter (20858): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method login on channel app.meedu/flutter_facebook_auth) E/flutter (20858): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332) E/flutter (20858): <asynchronous suspension> E/flutter (20858): #1 FacebookAuthPlatformImplementation.login (package:flutter_facebook_auth_platform_interface/src/facebook_auth_implementation.dart:35) E/flutter (20858): <asynchronous suspension> E/flutter (20858): #2 facebookSignIn (package:project/auth/firebase_auth/facebook_auth.dart:20) E/flutter (20858): <asynchronous suspension> E/flutter (20858): #3 FirebaseAuthManager._signInOrCreateAccount (package:project/auth/firebase_auth/firebase_auth_manager.dart:311) E/flutter (20858): <asynchronous suspension>

suhailbilalw commented 3 days ago

@paulperez-dev Right now flutterflow is only including "facebook_app_id" in strings.xml but according to what documentation tells flutterflow should add second string "facebook_client_token" as well. That fixes the issue probably.

paulperez-dev commented 1 day ago

Hi @suhailbilalw,

Thanks for the information. I'm looking into this.