Closed atulproject99 closed 1 year ago
@atulproject99 I have tried to reproduce the issue without success, even I have addapted the example https://github.com/darwin-morocho/flutter-facebook-auth/tree/master/facebook_auth/example to your android configuration.
Please run that example, replace with your facebook credentials and let me know if the issue persists.
Also if you can please add your android/app/build.gradle
file
@atulproject99 how did u solve this?
What version are you using?
flutter_facebook_auth: 5.0.7
What OS and version are you using to local deploy your application?
macOS ventura 13.1
What platforms are you seeing the problem on?
Android
pubspec.yaml
Describe the Bug
I getting this exception
W/class com.facebook.login.LoginManager( 2314): You're calling logging in Facebook with an activity supports androidx activity result APIs. Please follow our document to upgrade to new APIs to avoid overriding onActivityResult().
Expected Behavior
Not happening this . I want to simple login in app.
To Reproduce
import 'package:dartz/dartz.dart'; import 'package:flutter_facebook_auth/flutter_facebook_auth.dart';
import '../../../../../models/auth/social_auth_response_model.dart'; import '../../../../../common/api/golfers_error.dart'; import '../../../../../modules/register/controllers/register_controller.dart'; import 'meta_service.dart';
class MetaServicesImple extends MetaServices { final _fbAuth = FacebookAuth.instance; @override Future<Either<GolfersException, SocialAuthResponseModel>> signInWithFacebook() async { final LoginResult result = await _fbAuth.login( permissions: ['email'], );
} }
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
AndroidManifest.xml
MainActivity.java
No response
MainActivity.kt
index.html
No response
Info.plist (macOS)
No response