Giter Club home page Giter Club logo

flutter-facebook-auth's Introduction

image

pub version last commit license stars

Features

  • Login on iOS, Android and Web.
  • Express login on Android.
  • Granted and declined permissions.
  • User information, picture profile and more.
  • Provide an access token to make request to the Graph API.

Full documentation 👉 https://facebook.meedu.app

✅ Don't forget to leave your like if this plugin was useful for you.

IMPORTANT: Upon installation of this plugin, configuration is needed on Android before running the project again. If this is not done, an error of No implementation found would show because the Facebook SDK on Android would throw an Exception error if the configuration is not yet defined. This error also locks the other plugins in your project, so if the plugin is not yet needed, either remove it or comment it out from the pubspec.yaml file.

flutter-facebook-auth's People

Contributors

2shrestha22 avatar abegehr avatar abodehbabelli avatar airy-swift avatar asashour avatar asmengistu avatar cuong0993 avatar darwin-morocho avatar darwinmorocho-deuna avatar dependabot[bot] avatar ekasetiawans avatar iahmadamin avatar iamevansobeng avatar j-j-gajjar avatar jdfreolo avatar k9i-0 avatar kay-kwaw avatar kevmoo avatar marcotta avatar mhfortuna avatar mono0926 avatar potatojoayo avatar romainfranceschini avatar samlythemanly avatar snyk-bot avatar tamoyal avatar vintage avatar zeczen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter-facebook-auth's Issues

flutter_facebook_auth depends on a too old version of FBSDKCoreKit compared to facebook_app_events

Hello,

I have an issue with your lib because FBSDKCoreKit is too old in flutter_facebook_auth compared to facebook_app_events, so my pod install can't be successful.

`[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In snapshot (Podfile.lock):
FBSDKCoreKit (= 5.15.1, ~> 5.0)

  In Podfile:
    facebook_app_events (from `.symlinks/plugins/facebook_app_events/ios`) was resolved to 0.0.1, which depends on
      FBSDKCoreKit (~> 7.1.0)


You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `FBSDKCoreKit` inside your development pod `facebook_app_events`.
   You should run `pod update FBSDKCoreKit` to apply changes you've made.`

Thanks !

Login failed

Describe the bug
I've followed every step from the docs, and i got to the point where triggering the facebook login event pops the facebook account selector. But after choosing the account and pressing login, my flutter app gives login failed (error: FacebookAuthErrorCode.FAILED)

Environment
Flutter doctor:
[√] Flutter (Channel dev, 1.27.0-1.0.pre, on Microsoft Windows [Version 10.0.19041.804], locale en-US)
• Flutter version 1.27.0-1.0.pre at D:\flutter
• Framework revision 68c96f100e (10 days ago), 2021-02-08 16:14:15 -0800
• Engine revision b04955656c
• Dart version 2.13.0 (build 2.13.0-0.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\dani\AppData\Local\Android\Sdk
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Java\jdk1.8.0_202\bin\java
• Java version Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
• Android Studio at D:\AndroidStudio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Android Studio
• Android Studio at D:\AndroidStudio\bin
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
X android-studio-dir = D:\AndroidStudio\bin
X Unable to find bundled Java version.
• Try updating or re-installing Android Studio.
• Consider removing your android-studio-dir setting by running:
flutter config --android-studio-dir=

[√] IntelliJ IDEA Community Edition (version 2020.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.2.3
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (3 available)
• SM A505FN (mobile) • R58M73TGJWT • android-arm64 • Android 10 (API 29)
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.150
• Edge (web) • edge • web-javascript • Microsoft Edge 88.0.705.68

! Doctor found issues in 1 category.

Pubspec.yaml:
name: fitter_fit_2
description: A new Flutter project.
publish_to: 'none'
version: 1.27.0-1.0.pre

environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
provider: ^4.3.2+3
firebase_core: ^0.8.0-1.0.nullsafety.0
firebase_auth: ^0.21.0-1.1.nullsafety.1
cloud_firestore: ^0.17.0-1.0.nullsafety.0
google_sign_in: ^5.0.0-nullsafety
flutter_facebook_auth: ^2.0.2
regexpattern: ^1.0.0

flushbar: ^1.10.4

tuple: ^2.0.0-nullsafety.0
flutter_svg: ^0.20.0-nullsafety.3
font_awesome_flutter: ^9.0.0-nullsafety

.
cupertino_icons: ^1.0.0

dev_dependencies:
flutter_test:
sdk: flutter

flutter:

uses-material-design: true

assets:
- Assets/Workout2.svg
- Assets/GoogleIcon.svg

AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET" />

<application
    android:name="io.flutter.app.FlutterApplication"
    android:label="@string/app_name"
    android:icon="@mipmap/ic_launcher">

    <meta-data 
      android:name="com.facebook.sdk.ApplicationId"
      android:value="@string/facebook_app_id"/>
    <activity 
      android:name="com.facebook.FacebookActivity"
      android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
      android:label="@string/app_name" />
    <activity
      android:name="com.facebook.CustomTabActivity"
      android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="@string/fb_login_protocol_scheme" />
      </intent-filter>
    </activity>
    
    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <meta-data
          android:name="io.flutter.embedding.android.NormalTheme"
          android:resource="@style/NormalTheme"
          />
        <meta-data
          android:name="io.flutter.embedding.android.SplashScreenDrawable"
          android:resource="@drawable/launch_background"
          />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />
</application>

strings.xml:

FitterFit2 ########## fb########

To Reproduce
Please add your code to reproduce the issue

Expected behavior
A clear and concise description of what you expected to happen.

Video

the user that i'm using in the video is a Test user generated with facebook developers site, the app is in development mode, it's not published yet

WhatsApp.Video.2021-02-18.at.19.49.52.mp4

Not working on Android

Hi there - thanks for this great plugin. It works perfectly for me in iOS but in Android, I get an error when I try and run the same code :

var result = await FacebookAuth.instance.login(permissions: [
'email'
]);

This is the error :

Attempt to invoke interface method 'android.app.Activity io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding.getActivity()' on a null object reference

I have Flutter 1.12.13 hotfix 5.

I'm assuming this is because the Plugin is attempting to use Native embedding ?

I believe I have followed exactly the requirements including:

  1. Adding package and activity name in developer.facebook.com
  2. Updating Strings.xml with facebook app id etc
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">My great app</string>
<string name="facebook_app_id">app id</string>
<string name="fb_login_protocol_scheme">fb[app id]</string>
</resources>

  1. Update Manifest file with intent filter etc

       <meta-data android:name="com.facebook.sdk.ApplicationId" 
   android:value="@string/facebook_app_id"/>

<activity android:name="com.facebook.FacebookActivity"
   android:configChanges=
           "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
   android:label="@string/app_name" />

<activity
   android:name="com.facebook.CustomTabActivity"
   android:exported="true">
   <intent-filter>
       <action android:name="android.intent.action.VIEW" />
       <category android:name="android.intent.category.DEFAULT" />
       <category android:name="android.intent.category.BROWSABLE" />
       <data android:scheme="@string/fb_login_protocol_scheme" />
   </intent-filter>
</activity>

Is there something else I am missing for Android ?

Error message return from IOS sdk is incorrect

Hi, first of all thanks a lot for this wonderful library. I have encountered a problem when switching fb account in IOS. I keep getting error "error make sure that your Info.plist is configured" . After a lot of debugging, I find it out that the error happens because I didn't logout (await FacebookAuth.instance.logOut()) from account 1 and try to login to account 2. But in IOS it returning wrong error( "error make sure that your Info.plist is configured" ) which is not related to the actual error. I checked the ios code, as the image below, it return the same error message for all the errors.
image
Is it something to be fix bro?Or I'm wrong

Using the packages `image_picker` and `flutter_facebook_auth` returns MissingPluginException

Describe the bug
Using the package image_picker and flutter_facebook_auth together creates the following error:

Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)

Removing flutter_facebook_auth as a dependency fixes the bug.

Environment
flutter doctor -v

[√] Flutter (Channel beta, 1.26.0-17.3.pre, on Microsoft Windows [Version 10.0.18363.1379], locale en-US)
    • Flutter version 1.26.0-17.3.pre at C:\flutter
    • Framework revision 4b50ca7f7f (9 days ago), 2021-02-04 19:44:27 -0800
    • Engine revision 2c527d6c7e
    • Dart version 2.12.0 (build 2.12.0-259.8.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Admin\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Admin\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.53.0)
    • VS Code at C:\Users\Admin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[√] Connected device (1 available)
    • ONEPLUS A6003 (mobile) • bdc3a9a1 • android-arm64 • Android 10 (API 29)

• No issues found!

pubspec.yaml

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  firebase_core: "0.7.0"
  firebase_auth: "^0.20.0+1"
  firebase_analytics: ^7.0.1
  firebase_storage: ^7.0.0
  cloud_firestore: "^0.16.0"
  provider: ^4.3.3
  intl: ^0.16.1
  
  image_picker: ^0.6.7
  flutter_facebook_auth: ^2.0.2
  flutter_screenutil: ^4.0.3+1  

AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="transplant.app">
   <uses-permission android:name="android.permission.CAMERA" />
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.FLASHLIGHT" />

   <application
        android:label="transplant"
        android:icon="@mipmap/ic_launcher"
        android:requestLegacyExternalStorage="true">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

To Reproduce:
List flutter_facebook_auth: ^2.0.2 and image_picker: ^0.6.7 as dependencies. Use image_picker .getImage() function.

Execute the following code:

final picker = ImagePicker();
await picker.getImage(source: ImageSource.camera);

Expected behavior:
Expected no dependency clash and the function to work as expected.

Screenshots

E/flutter ( 8747): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ( 8747): MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
E/flutter ( 8747): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
E/flutter ( 8747): <asynchronous suspension>

The App Store will no longer accept new apps using UIWebView

Hi Guys,

Quick question before I spend time to integrate your dependency.
The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020.

Read article here:
https://developer.apple.com/news/?id=12232019b#:~:text=If%20your%20app%20still%20embeds,for%20improved%20security%20and%20reliability.&text=The%20App%20Store%20will%20no,UIWebView%20as%20of%20December%202020.

Is this affecting your flutter dependency>?
Thanks for your time.

Swift version does not specify

Error
- 'flutter_facebook_auth' does not specify a Swift version and none of the targets ('Runner') integrating it have the 'SWIFT_VERSION' attribute set. Please contact the author or set the 'SWIFT_VERSION' attribute in at least one of the targets that integrate this pod.

Environment
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-ID)
• Flutter version 1.9.1+hotfix.2 at /Users/ows/flutter
• Framework revision 2d2a1ffec9 (4 weeks ago), 2019-09-06 18:39:49 -0700
• Engine revision b863200c37
• Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at /Users/ows/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• CocoaPods version 1.6.1

[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.38.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.5.1

[✓] Connected device (1 available)
• iPhone X • 810C1776-8BF2-4252-B51A-E44EED411A81 • ios • iOS 12.1 (simulator)

• No issues found!

Unable to switch Facebook user

Describe the bug
Hey, thanks for this plugin.
I'm facing an issue when trying to test the app with multiple Facebook users.
The first time I run the app it asks for my Facebook credentials and then signs me in, but when I try to trigger the login again it just prompts to log in with the same user just by clicking Continue, or Cancel the login, I don't have an option to sign in as a different user.
I even tried login me out but still the same.

Environment
Flutter 1.22.2 on an iOS Emulator running iOS 14.2.
flutter_facebook_auth: 1.0.1

To Reproduce

  _onSignInWithFacebook() async {
    try {
      AccessToken accessToken = await FacebookAuth.instance.isLogged;
      if (accessToken != null) {
        await FacebookAuth.instance.logOut();
      }
      accessToken = await FacebookAuth.instance.login();
      final userData = await FacebookAuth.instance.getUserData();
      print(userData);
    } catch (e, s) {
      if (e is FacebookAuthException) {
        print(e.message);
        switch (e.errorCode) {
          case FacebookAuthErrorCode.OPERATION_IN_PROGRESS:
            print("You have a previous login operation in progress");
            break;
          case FacebookAuthErrorCode.CANCELLED:
            print("login cancelled");
            break;
          case FacebookAuthErrorCode.FAILED:
            print("login failed");
            break;
        }
      }
    }
  }

Expected behavior
Every time it opens the facebook login it should let me log in as a previous user OR as a different user.

Unhandled error MissingPluginException when running on Android + use google_sign_in package, no issues in iOS

E/flutter (25706): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Unhandled error MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in) occurred in bloc Instance of 'SocmedSignInBloc'.
E/flutter (25706): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
E/flutter (25706): <asynchronous suspension>
E/flutter (25706): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter (25706): #2      MethodChannelGoogleSignIn.init (package:google_sign_in_platform_interface/src/method_channel_google_sign_in.dart:28:20)
E/flutter (25706): #3      GoogleSignIn._ensureInitialized (package:google_sign_in/google_sign_in.dart:249:62)
E/flutter (25706): #4      GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:231:11)
E/flutter (25706): #5      GoogleSignIn._addMethodCall (package:google_sign_in/google_sign_in.dart:288:18)
E/flutter (25706): #6      GoogleSignIn.signIn (package:google_sign_in/google_sign_in.dart:359:9)
....

Here is the error when I use flutter_facebook_auth with google_sign_in and I try to log in with google_sign_in. The same error happens when I try to log in with flutter_facebook_auth.

image

image

I don't know why this package always makes an error such as that. So, I use another package called flutter_facebook_login for Facebook authentication, and all safe. Is there something wrong with this package? Does this package use the same resource and code with google_sign_in?

Facebook login flow is not working anymore after migration my flutter project to flutterEmbedding v2

Describe the bug
The facebook login flow used to work properly, but since i migrated to flutterEmbedding v2 it is now working anymore on android. on iOS it works though.
This call await FacebookAuth.instance.login() never returns.

Environment
Add your flutter doctor -v
[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.5 19F101 darwin-x64, locale de-DE)
• Flutter version 1.22.5 at /Users/gsiewe/workspace/private/flutter
• Framework revision 7891006299 (7 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/gsiewe/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[!] IntelliJ IDEA Ultimate Edition (version 2020.1.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] Connected device (2 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• iPhone 12 Pro Max (mobile) • 56B67681-CBCA-4927-BAC6-7DD550E80343 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)

! Doctor found issues in 1 category.

Add your pubspec.yaml
name: chatetyamo
description: Chat&Yamo application de rencontre pour les jeunes Camerounais.

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter

http: "^0.12.2"
shared_preferences: "^0.5.12"
flutter_cache_manager: "^1.4.2"
web_socket_channel: "^1.1.0"
event_bus: "^1.1.1"
flutter_webview_plugin: "^0.3.11"
in_app_purchase: ^0.3.3+1
firebase_messaging: "^6.0.16"
material_design_icons_flutter: "4.0.5655"
fluttertoast: "^7.1.1"
flutter_slidable: "^0.5.7"
flutter_facebook_auth: ^2.0.0+1
share: "^0.6.5+2"
firebase_performance: ^0.3.1+4
rxdart: ^0.24.1
url_launcher: ^5.7.2
rflutter_alert: ^1.1.0
flutter_custom_tabs: ^0.6.0
geolocator: ^5.3.2+2
image_crop: ^0.3.3
intro_slider: ^2.3.3
highlighter_coachmark: "^0.0.3"
rate_my_app: "^0.4.0"
photo_view: ^0.10.2
zoomable_image: ^1.3.1
timer_builder: "^1.3.0"
package_info: ^0.4.3
flutter_screenutil: ^3.1.1
super_tooltip: ^0.9.0
currency_pickers: ^1.0.6
backdrop: ^0.4.6
flutter_native_splash: ^0.1.9
quiver: ^2.1.3
apple_sign_in: ^0.1.0
flushbar: ^1.10.4
intl: ^0.16.1
image_picker: ^0.6.7+14
expandable_text: ^1.1.0

dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: "^0.7.4"

flutter_icons:
android: true
ios: true
image_path: "assets/new_logo.png"
image_path_android: "assets/new_logo.png"
image_path_ios: "assets/new_logo.png"

flutter:
uses-material-design: true
assets:
- assets/profile-placeholder.png
- assets/profile-placeholder-v1.png
- assets/background.jpg
- assets/blur_image.png
- assets/new_logo.png
- assets/orange_money.png
- assets/google_play_store.png
- assets/app_store.png
- assets/paypal.png
- assets/credit_card.png
- assets/bank_transfer.jpg
- assets/m-pesa-logo.png
- assets/momo.png
- assets/google_play.jpeg
- assets/restaurant_1.jpeg
- assets/restaurant_2.jpeg
- assets/restaurant_3.jpeg
- assets/restaurant_4.jpeg

fonts:
- family: ChatetYamoApp
fonts:
- asset: fonts/Lato-Regular.ttf
- asset: fonts/Lato-Black.ttf
- asset: fonts/Lato-Bold.ttf

flutter_native_splash:
image: assets/background.png
color: "42a5f5"
fill: true
android_disable_fullscreen: false
ios: false

Add your AndroidManifest.xml

<!-- The INTERNET permission is required for development. Specifically,
     flutter needs it to communicate with the running application
     to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="com.android.vending.BILLING" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
     calls FlutterMain.startInitialization(this); in its onCreate method.
     In most cases you can leave this as-is, but you if you want to provide
     additional functionality it is fine to subclass or reimplement
     FlutterApplication and put your custom class here. -->
<application
    android:name="com.chatetyamo.Application"
    android:label="Chat&amp;Yamo"
    android:icon="@mipmap/ic_launcher">

    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />

    <meta-data
        android:name="com.google.firebase.messaging.default_notification_icon"
        android:resource="@mipmap/ic_launcher" />

    <activity
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">
        <!-- This keeps the window background of the activity showing
             until Flutter renders its first frame. It can be removed if
             there is no splash screen (such as the default splash screen
             defined in @style/LaunchTheme). -->
        <meta-data
            android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
            android:value="true" />
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
        <intent-filter>
            <action android:name="FLUTTER_NOTIFICATION_CLICK" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.yalantis.ucrop.UCropActivity"
        android:screenOrientation="portrait"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

    <meta-data android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id"/>

    <!-- meta-data android:name="firebase_performance_logcat_enabled" android:value="true" /-->
    <!-- meta-data android:name="firebase_performance_collection_enabled" android:value="false" /-->

    <activity android:name="com.facebook.FacebookActivity"
        android:configChanges=
            "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />

    <activity
        android:name="com.facebook.CustomTabActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>

</application>

Add your /app/res/values/strings.xml

Chat&Yamo
<!-- Replace "000000000000" with your Facebook App ID here. -->
<string name="facebook_app_id">FacebookAppID</string>

<!--
  Replace "000000000000" with your Facebook App ID here.
  **NOTE**: The scheme needs to start with `fb` and then your ID.
-->
<string name="fb_login_protocol_scheme">fbFacebookAppID</string>

To Reproduce

  • Migrate old flutter project (using flutter_facebook_auth) to flutterEmbedding v2
  • run the app on android and try the Facebook login flow

Expected behavior
I expect the call await FacebookAuth.instance.login() to terminate either with an error or with a valid access token

Android black screen after starting login

Describe the bug
I/behavior::(21007): DIALOG_ONLY
I/WebViewFactory(21007): Loading com.google.android.webview version 83.0.4103.106 (code 410410683)
I/xxx.meditat(21007): The ClassLoaderContext is a special shared library.
D/nativeloader(21007): classloader namespace configured for unbundled product apk. library_path=/product/app/WebViewGoogle/lib/arm64:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/arm64-v8a:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/arm64-v8a:/product/lib64:/system/product/lib64
I/xxx.meditat(21007): The ClassLoaderContext is a special shared library.
D/nativeloader(21007): classloader namespace configured for unbundled product apk. library_path=/product/app/WebViewGoogle/lib/arm64:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/arm64-v8a:/product/app/TrichromeLibrary/TrichromeLibrary.apk!/lib/arm64-v8a:/product/lib64:/system/product/lib64
I/cr_LibraryLoader(21007): Loaded native library version number "83.0.4103.106"
I/cr_CachingUmaRecorder(21007): Flushed 3 samples from 3 histograms.
E/AndroidRuntime(21113): FATAL EXCEPTION: main
E/AndroidRuntime(21113): Process: com.android.chrome, PID: 21113
E/AndroidRuntime(21113): Zr0: errorCode=4
E/AndroidRuntime(21113): at Vl1.B(chromium-TrichromeChromeGoogle.aab-stable-410410683:1)
E/AndroidRuntime(21113): at Am1.a(chromium-TrichromeChromeGoogle.aab-stable-410410683:3)
E/AndroidRuntime(21113): at Rl1.d(chromium-TrichromeChromeGoogle.aab-stable-410410683:12)
E/AndroidRuntime(21113): at Nl1.run(chromium-TrichromeChromeGoogle.aab-stable-410410683:1)
E/AndroidRuntime(21113): at android.os.Handler.handleCallback(Handler.java:938)
E/AndroidRuntime(21113): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(21113): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(21113): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/AndroidRuntime(21113): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(21113): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime(21113): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime(21113): Caused by: Zr0: errorCode=2
E/AndroidRuntime(21113): at Ur0.f(chromium-TrichromeChromeGoogle.aab-stable-410410683:16)
E/AndroidRuntime(21113): at Ur0.b(chromium-TrichromeChromeGoogle.aab-stable-410410683:4)
E/AndroidRuntime(21113): at Ur0.a(chromium-TrichromeChromeGoogle.aab-stable-410410683:2)
E/AndroidRuntime(21113): at Ml1.run(chromium-TrichromeChromeGoogle.aab-stable-410410683:3)
E/AndroidRuntime(21113): at java.lang.Thread.run(Thread.java:923)
E/AndroidRuntime(21113): Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libchromium_android_linker.so" not found
E/AndroidRuntime(21113): at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
E/AndroidRuntime(21113): at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
E/AndroidRuntime(21113): at java.lang.System.loadLibrary(System.java:1664)

Everything works fine on iOS however the problem only appears on android. At the same time in emulator / physical device.

MissingPluginException (MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider))

I'm getting this error on android when run my app. I've already tried flutter clean and update some packages to latest version.

I wasn't getting this error when it stopped working on the project 2-3 weeks ago.

MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider)
Edit: Error is getting out when I remove flutter_facebook_auth: ^1.0.2+2 package.
Edit 2: I created new flutter app with same packages and It is working without error.
Packages that I use.

version: 1.0.0+1

environment:
  sdk: '>=2.7.0 <3.0.0'

dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  #cupertino_icons: ^1.0.0

  google_fonts: ^1.1.1
  provider: ^4.3.2+2
  #page transition animation
  page_transition: '^1.1.7+2'
  #for some UI elements not very essential
  flui: 0.9.2
  #ios style date picker
  flutter_datetime_picker: ^1.4.0
  get_it: ^5.0.1
  #Height, age, range slider
  flutter_xlider: ^3.4.0
  #For picking image from gallery
  image_picker: ^0.6.7+12
  image_pickers: ^1.0.8+7

  #For reading icons at flutter
  flutter_svg: ^0.19.1
  flutter_icons: ^1.1.0

  #For showing loading icon when provider state changes
  loading_overlay: ^0.2.1
  flutter_styled_toast: ^1.4.0+1
  #Firebase Packages
  firebase_auth: ^0.18.4+1
  cloud_firestore: ^0.14.4
  firebase_storage: ^5.0.1
  firebase_core: ^0.5.3
  google_sign_in: ^4.5.6
  flutter_facebook_auth: ^1.0.2+2
  #firebase_database: ^4.4.0

  #maps and geolocation packages Using At MapPage
  google_maps_flutter: ^1.0.6
  google_place: ^0.3.3
  #getting user current location.
  geolocator: ^6.1.4

  #cluster manager for Google Maps. Using at MapPage
  google_maps_cluster_manager: ^0.2.0

  #to make bottom container for map Using at MapPage
  sliding_up_panel: ^1.0.2
  #To get LatLng from an address or to get Address From an LatLng
  geocoder: ^0.2.1

  #For swipe cards
  swipe_stack: ^1.0.0

  #For creating timing indicator at match and likes page. Look at circular avatars
  percent_indicator: ^2.1.8

  #to make location search based on geohash.
  geoflutterfire: ^2.2.1

  #for local data managment. Key value pairs
  shared_preferences: ^0.5.12+4
  #cache image and loading indicator fo them
  cached_network_image: ^2.4.1

  #to draw chart. Used at venue detail page.
  fl_chart: ^0.12.0

  # Create unique id for firebase documents
  uuid: ^2.2.2

  path_provider: ^1.6.24
  #some stream operations do
  rxdart: ^0.24.1
  #Google recaptcha plugin
  flutter_recaptcha_v2: ^0.1.0
dev_dependencies:
  flutter_test:
    sdk: flutter

flutter:
  uses-material-design: true

Runtime log

E/flutter (12424): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
E/flutter (12424): <asynchronous suspension>
E/flutter (12424): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter (12424): #2      MethodChannelPathProvider.getApplicationSupportPath (package:path_provider_platform_interface/src/method_channel_path_provider.dart:38:26)
E/flutter (12424): #3      getApplicationSupportDirectory (package:path_provider/path_provider.dart:73:39)
E/flutter (12424): #4      _localPath (package:google_fonts/src/file_io_desktop_and_mobile.dart:28:27)
E/flutter (12424): #5      _localFile (package:google_fonts/src/file_io_desktop_and_mobile.dart:33:22)
E/flutter (12424): #6      saveFontToDeviceFileSystem (package:google_fonts/src/file_io_desktop_and_mobile.dart:7:22)
E/flutter (12424): #7      _httpFetchFontAndSaveToDevice (package:google_fonts/src/google_fonts_base.dart:244:15)
E/flutter (12424): <asynchronous suspension>
E/flutter (12424): #8      loadFontIfNecessary (package:google_fonts/src/google_fonts_base.dart:162:18)
E/flutter (12424): <asynchronous suspension>
E/flutter (12424): #9      googleFontsTextStyle (package:google_fonts/src/google_fonts_base.dart:107:3)
E/flutter (12424): #10     GoogleFonts.arimo (package:google_fonts/google_fonts.dart:7910:12)
E/flutter (12424): #11     MyApp.build.<anonymous closure> (package:spott/main.dart:57:37)
E/flutter (12424): #12     new MultiProvider.<anonymous closure> (package:provider/src/provider.dart:121:48)
E/flutter (12424): #13     Builder.build (package:flutter/src/widgets/basic.dart:7183:48)
E/flutter (12424): #14     StatelessElement.build (package:flutter/src/widgets/framework.dart:4701:28)
E/flutter (12424): #15     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)
E/flutter (12424): #16     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (12424): #17     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (12424): #18     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (12424): #19     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (12424): #20     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (12424): #21     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (12424): #22     _InheritedProviderScopeElement.performRebuild (package:provider/src/inherited_provider.dart:426:11)
E/flutter (12424): #23     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (12424): #24     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (12424): #25     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (12424): #26     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (12424): #27     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (12424): #28     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (12424): #29     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (12424): #30     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (12424): #31     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (12424): #32     SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
E/flutter (12424): #33     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (12424): #34     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (12424): #35     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (12424): #36     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter (12424): #37     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter (12424): #38     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter (12424): #39     _NestedHookElement.mount (package:nested/nested.dart:188:11)
E/flutter (12424): #40     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter (12424): #41     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter (12424): #42     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter (12424): #43     Element.rebuild (package:flutter/src/widgets/framewor

No implementation found for method

Describe the bug
On a new peroyect without any code, just this libraries on the yaml
multiimage_picker
image_picker
google_places_picker
share_preferences

they works just fine

but the inclusion of
flutter-facebook-auth
the yaml
the libraries above start to fail
throwing No implementation found for method

image

removing the flutter-facebook-auth from the yaml everything works just fine

Compiler errors in FacebookAuth

Describe the bug
After adding the plugin I get 4 errors in xcode.
The project is an Objective-C projects, as that seemed to work best with Flutter. But swift was enabled following the description in the docs.
I've tried changing platform in podfile to 9.0 or 10.0 - no apparent difference.

Errors:

Swift Compiler Error Group
/Users/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-2.0.0+1/ios/Classes/FacebookAuth.swift:70:91: Extra trailing closure passed in call
/Users/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-2.0.0+1/ios/Classes/FacebookAuth.swift:70:41: Cannot convert value of type '[Permission]' to expected argument type '[String]'
/Users/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-2.0.0+1/ios/Classes/FacebookAuth.swift:70:41: Arguments to generic parameter 'Element' ('Permission' and 'String') are expected to be equal
/Users/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-2.0.0+1/ios/Classes/FacebookAuth.swift:146:46: Value of type 'AccessToken' has no member 'permissions'
/Users/xxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-2.0.0+1/ios/Classes/FacebookAuth.swift:147:47: Value of type 'AccessToken' has no member 'declinedPermissions'

Environment
flutter doctor -v
[✓] Flutter (Channel dev, 1.26.0-8.0.pre, on macOS 11.1 20C69 darwin-x64, locale da-DK)
• Flutter version 1.26.0-8.0.pre at /Users/xxx/flutter
• Framework revision b9d06fffb2 (8 days ago), 2021-01-07 18:36:48 -0800
• Engine revision 42a8d4c681
• Dart version 2.12.0 (build 2.12.0-179.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/xxx/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• ANDROID_HOME = /Users/xxx/Library/Android/sdk
• ANDROID_SDK_ROOT = /Users/xxx/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /Applications/Google Chrome.app/Contents/MacOS/google-chrome-unsafe

[✓] Android Studio
• Android Studio at /Applications/Android Studio 4.2 Preview.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.43.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (5 available)
• sdk gphone x86 arm (mobile) • emulator-5558 • android-x86 • Android 11 (API 30) (emulator)
• iPhone 11 (mobile) • 7C16F586-DEC3-471D-A849-BA4037648DBD • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
• iPhone 11 Pro (mobile) • 694AC23D-73E2-4C8C-8484-F024573FB95A • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 11.1 20C69 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.141

pubspec.yaml

name: xxx
description: xxx

version: 1.0.0+1

environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
firebase_core: "0.6.0"
firebase_auth: "^0.19.0+1"
google_sign_in: ^4.5.9
flutter_facebook_auth: ^2.0.0
get: ^3.24.0
font_awesome_flutter: ^8.11.0
flutter_login:
git:
url: git://github.com/bastaware/flutter_login.git
ref: master

cupertino_icons: ^1.0.1

dev_dependencies:
flutter_test:
sdk: flutter
integration_test:
sdk: flutter

flutter:
uses-material-design: true

Info.plist

CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName stockportfolyo CFBundlePackageType APPL CFBundleShortVersionString $(FLUTTER_BUILD_NAME) CFBundleSignature ???? CFBundleVersion $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS UILaunchStoryboardName LaunchScreen UIMainStoryboardFile Main UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIViewControllerBasedStatusBarAppearance CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLSchemes
        <array>
            <string>fb228942695306565</string>
            <string>com.googleusercontent.apps.1040699615982-r5i3ibof1dbnt262smnghkkk5nf7haqi</string>
        </array>
    </dict>
</array>
<!-- End of the Google + Facebook Sign-in Section -->
<key>FacebookAppID</key>
<string>228942695306565</string>
<key>FacebookDisplayName</key>
<string>Stockportfolyo</string>
<key>LSApplicationQueriesSchemes</key>
<array>
  <string>fbapi</string>
  <string>fb-messenger-share-api</string>
  <string>fbauth2</string>
  <string>fbshareextension</string>
</array>

To Reproduce
Add plugin and compile in Android Studio or Xcode

Expected behavior
No compile errors

Screenshots
If applicable, add screenshots or videos to help explain your problem.
image

image

Unhandled Exception: PlatformException(error, Attempt to invoke interface method 'android.app.Activity io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding.getActivity()' on a null object reference,

When i tried facebook login i got this error.

Unhandled Exception: PlatformException(error, Attempt to invoke interface method 'android.app.Activity io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding.getActivity()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke interface method 'android.app.Activity io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding.getActivity()' on a null object reference
E/flutter ( 3779): at ec.dina.flutter_facebook_auth.FlutterFacebookAuthPlugin.onMethodCall(FlutterFacebookAuthPlugin.java:71)
E/flutter ( 3779): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/flutter ( 3779): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/flutter ( 3779): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/flutter ( 3779): at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter ( 3779): at android.os.MessageQueue.next(MessageQueue.java:336)
E/flutter ( 3779): at android.os.Looper.loop(Looper.java:182)
E/flutter ( 3779): at android.app.ActivityThread.main(ActivityThread.java:7820)
E/flutter ( 3779): at java.lang.reflect.Method.invoke(Native Method)
E/flutter ( 3779): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/flutter ( 3779): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
E/flutter ( 3779): )
E/flutter ( 3779): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:582:7)
E/flutter ( 3779): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:18)
E/flutter ( 3779):
E/flutter ( 3779): #2 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter ( 3779): #3 FacebookAuth.login (package:flutter_facebook_auth/flutter_facebook_auth.dart:32:24)
E/flutter ( 3779): #4 FirebaseService.signInWithFacebook (package:mvb/services/firebase_service.dart:43:60)
E/flutter ( 3779): #5 _MainPage.build.. (package:mvb/screens/home.dart:936:52)
E/flutter ( 3779): #6 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:993:19)
E/flutter ( 3779): #7 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:1111:38)
E/flutter ( 3779): #8 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:183:24)
E/flutter ( 3779): #9 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:598:11)
E/flutter ( 3779): #10 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:287:5)
E/flutter ( 3779): #11 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:259:7)
E/flutter ( 3779): #12 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
E/flutter ( 3779): #13 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:362:20)
E/flutter ( 3779): #14 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:338:22)
E/flutter ( 3779): #15 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:267:11)
E/flutter ( 3779): #16 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:295:7)
E/flutter ( 3779): #17 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:240:7)
E/flutter ( 3779): #18 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:213:7)
E/flutter ( 3779): #19 _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter ( 3779): #20 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter ( 3779): #21 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter ( 3779): #22 _invoke1 (dart:ui/hooks.dart:265:10)
E/flutter ( 3779): #23 _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)

PlatformException(500, net::ERR_NAME_NOT_RESOLVED, null)

Hi!

I just moved over from the abandoned flutter_facebook_login and now when I try to login via the emulator on Android I get an error. Note login successfully works on production and simulator but just not the emulator.

[+6151 ms] I/facebook:(26654): sasasas
[  +40 ms] W/ActivityThread(26654): handleWindowVisibility: no activity for token android.os.BinderProxy@1d4de09
[ +294 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[   +7 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[        ] D/eglCodecCommon(26654): setVertexArrayObject: set vao to 3 (3) 0 0
[ +146 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[  +50 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[  +22 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[+1799 ms] W/Ads     (26654): Error while pinging URL:
https://pagead2.googlesyndication.com/pagead/gen_204?is_aia=false&id=gmob-apps-report-exception&os=10&api=29&device=Google
%20Android%20SDK%20built%20for%20x86&js=afma-sdk-a-v201004999.15301000.1&appid=com.miguelhe.remac_test_prep&exceptiontype=
com.google.android.gms.ads.internal.js.function.a&stacktrace=com.google.android.gms.ads.internal.js.function.a%3A%20Unable
%20to%20obtain%20a%20JavascriptEngine.%0A%09at%20com.google.android.gms.ads.internal.js.function.l.a(%3Acom.google.android
.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A1)%0A%09at%20com.google.android.gms.ads.internal.
util.promise.e.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A2)%0A%09at%
20zk.run(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A5)%0A%09at%20zc.exe
cute(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.google
.android.gms.ads.internal.util.future.c.execute(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.29
7791526.297791526%3A0)%0A%09at%20yj.b(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.29
7791526%3A4)%0A%09at%20yj.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A
44)%0A%09at%20yj.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A52)%0A%09
at%20aab.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.
google.android.gms.ads.internal.util.future.i.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.29
7791526.297791526%3A3)%0A%09at%20com.google.android.gms.ads.internal.util.promise.f.e(%3Acom.google.android.gms.policy_ads
_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.google.android.gms.ads.internal.js.aq.a(%3Acom.
google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.google.android.gms
.ads.internal.util.promise.e.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526
%3A2)%0A%09at%20zk.run(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A5)%0A
%09at%20zc.execute(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09a
t%20com.google.android.gms.ads.internal.util.future.c.execute(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000
%4021460000.297791526.297791526%3A0)%0A%09at%20yj.b(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%402146000
0.297791526.297791526%3A4)%0A%09at%20yj.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.29779152
6.297791526%3A44)%0A%09at%20yj.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.2977915
26%3A52)%0A%09at%20aab.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%
0A%09at%20com.google.android.gms.ads.internal.util.future.i.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000
%4021460000.297791526.297791526%3A3)%0A%09at%20com.google.android.gms.ads.internal.util.promise.f.e(%3Acom.google.android.
gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.google.android.gms.ads.internal.j
s.ac.run(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A3)%0A%09at%20androi
d.os.Handler.handleCallback(Handler.java%3A883)%0A%09at%20android.os.Handler.dispatchMessage(Handler.java%3A100)%0A%09at%2
0pg.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.297791526%3A0)%0A%09at%20com.googl
e.android.gms.ads.internal.util.f.a(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.2977
91526%3A1)%0A%09at%20pg.dispatchMessage(%3Acom.google.android.gms.policy_ads_fdr_dynamite%4021460000%4021460000.297791526.
297791526%3
[  +32 ms] D/eglCodecCommon(26654): setVertexArrayObject: set vao to 2 (2) 0 0
[  +13 ms] D/eglCodecCommon(26654): setVertexArrayObject: set vao to 0 (0) 0 0
[+14812 ms] I/facebook:(26654): sasasas
[  +35 ms] W/ActivityThread(26654): handleWindowVisibility: no activity for token android.os.BinderProxy@9199a72
[  +76 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xaf0e7f60: ver 3 0 (tinfo 0xaeffaa80)
[   +2 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[   +3 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[        ] D/eglCodecCommon(26654): setVertexArrayObject: set vao to 4 (4) 0 0
[  +71 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[  +27 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[  +10 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[+1850 ms] W/FirebaseInstanceId(26654): Token retrieval failed: SERVICE_NOT_AVAILABLE. Will retry token retrieval
[+10838 ms] I/facebook:(26654): sasasas
[  +59 ms] W/ActivityThread(26654): handleWindowVisibility: no activity for token android.os.BinderProxy@aba69dc
[ +107 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[   +2 ms] E/eglCodecCommon(26654): glUtilsParamSize: unknow param 0x000088ef
[        ] D/eglCodecCommon(26654): setVertexArrayObject: set vao to 5 (5) 0 0
[  +42 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[  +46 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)
[   +7 ms] D/EGL_emulation(26654): eglMakeCurrent: 0xebb58f80: ver 3 0 (tinfo 0xebb486f0)

[TYPO] Typo in the example code

There's a typo in the example code. There's a variable String twitterStatus = "No Logged"; but it's showing a Facebook login example.

How to get email of a user are signed in, i had try FacebookAuth.instance.getUserData() but still not get the email

Describe the bug
How to get email of a user are signed in, i had try FacebookAuth.instance.getUserData() but still not get the email.
the email doesn't showing the email key on getUserData Object

Environment
Add your flutter doctor -v

[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 10.0.18363.1316], locale en-ID)
    • Flutter version 1.22.5 at D:\Programming\flutter
    • Framework revision 7891006299 (8 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

 
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\rudia\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\rudia\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.

[!] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[!] IntelliJ IDEA Community Edition (version 2019.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.3
    X Flutter plugin not installed; this adds Flutter specific functionality.
    • Dart plugin version 193.7361
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[√] VS Code (version 1.45.0)
    • VS Code at C:\Users\rudia\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.19.0

[√] VS Code, 64-bit edition (version 1.52.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.19.0

[√] Connected device (1 available)
    • Redmi 5A (mobile) • 45a4da6e7d05 • android-arm64 • Android 8.1.0 (API 27)

! Doctor found issues in 2 categories.

Add your pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^1.0.0
  google_fonts: ^1.1.2
  intl: ^0.16.1
  flutter_swiper: ^1.1.6
  flutter_rating_bar: ^3.2.0+1
  provider: ^4.3.3
  firebase_core: ^0.7.0
  firebase_auth: ^0.20.0+1
  google_sign_in: ^4.5.9
  flutter_facebook_auth: ^2.0.1

  easy_localization: ^2.3.3

  dio: ^3.0.10

dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner: ^1.10.11
  json_serializable: ^3.5.1

Add your AndroidManifest.xml

<!-- FB -->
        <meta-data android:name="com.facebook.sdk.ApplicationId"
          android:value="@string/facebook_app_id"/>

        <activity android:name="com.facebook.FacebookActivity"
            android:configChanges=
                    "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
          android:label="@string/app_name" />
        <activity
            android:name="com.facebook.CustomTabActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="@string/fb_login_protocol_scheme" />
            </intent-filter>
        </activity>
        <!-- FB -->

Add your /app/res/values/strings.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">Flutter Facebook Auth</string>
    <string name="facebook_app_id">**30***********</string>
    <string name="fb_login_protocol_scheme">**30***********</string>
</resources>

To Reproduce
Please add your code to reproduce the issue

Future signInWithFacebook() async {
    // Trigger the sign-in flow
    final AccessToken result = await FacebookAuth.instance.login();
    // Create a credential from the access token
    final FacebookAuthCredential facebookAuthCredential =
        FacebookAuthProvider.credential(result.token);
    // Once signed in, return the UserCredential
    final User user =  (await _auth.signInWithCredential(facebookAuthCredential)).user;
    print(user.displayName);
    print(user.email);
    final userData = await FacebookAuth.instance.getUserData();
    print("userData");
    print(userData);
    print(user.photoURL);
    print(user.uid);
    
    var token = await user.getIdToken();
    if (token != null) {
      _authActionResponse = 200;
    }

    notifyListeners();
  }

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Facebook login always fail with null token

Hi, I followed the official documents on FlutterFire, which uses this plugin for authentication on google. The Facebook login request page pops up successfully, and then after I click on login, the page closes but returns me token is null and login canceled. I have set up a Facebook developer account and also followed steps on firebase enabling Facebook login. Did anyways have the same problem? Thank you!

Screen Shot 2020-09-29 at 9 55 01 AM

Screen Shot 2020-09-29 at 10 10 30 AM

iOS: dependency were found, but they required a higher minimum deployment target

Hi! Thanks for developing this plugin 👍

One problem on iOS:

When I try to run pod install, I get the following:

[!] CocoaPods could not find compatible versions for pod "flutter_facebook_auth":
  In Podfile:
    flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`)

Specs satisfying the `flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`)` dependency were found, but they required a higher minimum deployment target.

I've tried deleting Podfile.lock and pod repo update, but the problem still persists.

There seems to be a similar issue here:

roughike/flutter_twitter_login#26

Don't know if I should change the minimum iOS version as suggested though. 🤔

My Flutter env: [✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.6 19G73, locale en-US)

No implementation found for method login on channel ec.dina/flutter_facebook_auth

I'm trying to replicate the example from README.md, but every time I get this error:

E/flutter (12336): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method login on channel ec.dina/flutter_facebook_auth)
E/flutter (12336): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
E/flutter (12336): <asynchronous suspension>
E/flutter (12336): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter (12336): #2      FacebookAuth.login (package:flutter_facebook_auth/flutter_facebook_auth.dart:29:24)
E/flutter (12336): #3      _loginPageState._login (package:+++++/pages/loginPage.dart:55:48)
E/flutter (12336): #4      _loginPageState.build.<anonymous closure> (package:+++++/pages/loginPage.dart:201:33)
E/flutter (12336): #5      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:992:19)
E/flutter (12336): #6      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:1098:38)
E/flutter (12336): #7      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:184:24)
E/flutter (12336): #8      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:524:11)
E/flutter (12336): #9      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:284:5)
E/flutter (12336): #10     BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:256:7)
E/flutter (12336): #11     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:158:27)
E/flutter (12336): #12     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:224:20)
E/flutter (12336): #13     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:200:22)
E/flutter (12336): #14     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:158:7)
E/flutter (12336): #15     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:104:7)
E/flutter (12336): #16     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:88:7)
E/flutter (12336): #17     _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter (12336): #18     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (12336): #19     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter (12336): #20     _invoke1 (dart:ui/hooks.dart:283:10)
E/flutter (12336): #21     _dispatchPointerDataPacket (dart:ui/hooks.dart:192:5)
E/flutter (12336): 

I just copied and pasted from the example, I'm not sure what's causing this. Could someone please help me figure this out?

This is my flutter doctor --verbose:

[√] Flutter (Channel master, 1.20.0-1.0.pre.135, on Microsoft Windows [Version 10.0.18362.900], locale en-US)
    • Flutter version 1.20.0-1.0.pre.135 at C:\src\flutter
    • Framework revision eaf9ff738a (24 hours ago), 2020-06-22 11:53:54 -0700
    • Engine revision 676cd566f7
    • Dart version 2.9.0 (build 2.9.0-17.0.dev 7e72c9ae7e)


[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\++++\AppData\Local\Android\sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.46.1)
    • VS Code at C:\Users\++++\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.11.0

[√] Connected device (4 available)
    • SM G950F   • ce10182a248e403703 • android-arm64  • Android 9 (API 28)
    • Web Server • web-server         • web-javascript • Flutter Tools
    • Chrome     • chrome             • web-javascript • Google Chrome 83.0.4103.116
    • Edge       • edge               • web-javascript • Microsoft Edge 83.0.478.45

Support for FB SDK 9.0

We’ve recently received an email from Facebook saying that we should use SDK 9.0 with support for the new classic mode and limited login mode for iOS.

Could you upgrade your components to use SDK 9.0.

For reference, the email message is below:

Update your Facebook iOS SDK or Facebook SDK for Unity to version 9.0+ on January 19, 2021 for the new version of Facebook Login.

This new version of Facebook Login supports two distinct modes: Limited and Classic. Your app will pass Facebook a flag indicating the mode you have chosen for each of your users.

Limited Login mode implements safeguards designed to prevent the fact that a person used Facebook to log into your iOS app from being used to target advertising or measure advertising effectiveness. The mode is based on the OpenID Connect standard and allows users to create new accounts or access existing accounts on your app while only sharing their name, profile pic, and (optionally) email address. Note that Limited Login mode utilizes a JSON Web Token, which does not support Graph API queries.

Classic Login mode remains unchanged from the login product you and your users already know and love. It allows users to create new accounts or access existing accounts while granting your app the ability to access (with Facebook approval and user consent) certain Facebook data intended to improve their experience in your app. Note that Classic Login mode utilizes an oAuth 2.0 Access Token which supports Graph API queries.

You can choose either mode uniformly for all of your users, or choose one of the two modes conditionally.

Go to Limited Login for iOS 14 for more information, including implementation documentation and FAQs.

{HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID 'MY_FB_APP_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation.

Whenever I started my app, {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID 'MY_FB_APP_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation. was logged on my console while the login process looks working fine in development mode. Do I have to do something to get rid of this error?

i am getting a blank page rather than facebook login page

Describe the bug
i have followed all the steps to login with facebook Android
and i couldn't login to with my facebook account[blank page]

Environment
`
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.14.6 18G8012, locale en-EG)
• Flutter version 1.22.3 at /Users/mohammedadelalisorour/Developer/flutter
• Framework revision 8874f21e79 (4 months ago), 2020-10-29 14:14:35 -0700
• Engine revision a1440ca392
• Dart version 2.10.3

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/mohammedadelalisorour/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C505
• CocoaPods version 1.10.0

[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.53.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.19.0

[✓] Connected device (1 available)
• Redmi Note 5 (mobile) • 47c30211 • android-arm64 • Android 9 (API 28)

• No issues found!
`

`
environment:
sdk: ">=2.7.0 <3.0.0"

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
adaptive_dialog: ^0.9.3
badges: ^1.1.6
cupertino_icons: ^1.0.0
dio: ^3.0.10
firebase_messaging: ^7.0.3
flushbar: ^1.10.4
flutter_facebook_auth: ^2.0.2
flutter_signin_button: ^1.1.0
flutter_spinkit: ^4.1.2+1
flutter_svg: null
get: ^3.24.0
get_storage: ^1.4.0
introduction_screen: ^1.0.9
number_animation: ^0.1.2
photo_view: ^0.10.3
rflutter_alert: ^1.1.0
shimmer: ^1.1.2
smooth_star_rating: ^1.1.1
url_launcher: ^5.7.10
circular_check_box: ^1.0.4
smart_select: ^4.3.2
image_picker: ^0.6.7+22
liquid_progress_indicator: ^0.3.2
cached_network_image: ^2.2.0+1
flutter_staggered_animations: ^0.1.2

dev_dependencies:
flutter_test:
sdk: flutter

`

`

<!-- io.flutter.app.FlutterApplication is an android.app.Application that
     calls FlutterMain.startInitialization(this); in its onCreate method.
     In most cases you can leave this as-is, but you if you want to provide
     additional functionality it is fine to subclass or reimplement
     FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.INTERNET"/>
<application

    android:name="com.seven_square.mylook.Application"
    android:label="My Look"
    android:icon="@mipmap/ic_launcher">

    <meta-data android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id"/>

    <activity android:name="com.facebook.FacebookActivity"
        android:configChanges=
            "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />
    <activity
        android:name="com.facebook.CustomTabActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>


    <activity
        android:screenOrientation="portrait"
        android:name=".MainActivity"
        android:launchMode="singleTop"
        android:theme="@style/LaunchTheme"
        android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
        android:hardwareAccelerated="true"
        android:windowSoftInputMode="adjustResize">

        <!-- Specifies an Android theme to apply to this Activity as soon as
             the Android process has started. This theme is visible to the user
             while the Flutter UI initializes. After that, this theme continues
             to determine the Window background behind the Flutter UI. -->
        <meta-data
          android:name="io.flutter.embedding.android.NormalTheme"
          android:resource="@style/NormalTheme"
          />
        <!-- Displays an Android View that continues showing the launch screen
             Drawable until Flutter paints its first frame, then this splash
             screen fades out. A splash screen is useful to avoid any visual
             gap between the end of Android's launch screen and the painting of
             Flutter's first frame. -->
        <meta-data
          android:name="io.flutter.embedding.android.SplashScreenDrawable"
          android:resource="@drawable/launch_background"
          />

        <intent-filter>
            <action android:name="FLUTTER_NOTIFICATION_CLICK" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>

    </activity>

    <meta-data
        android:name="com.google.firebase.messaging.default_notification_channel_id"
        android:value="@string/default_notification_channel_id" />
    <!-- Don't delete the meta-data below.
         This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
    <meta-data
        android:name="flutterEmbedding"
        android:value="2" />





</application>

<uses-permission android:name="android.permission.INTERNET"/>
` ` fcm_default_channel My Look 495723724429126
<string name="fb_login_protocol_scheme">fb495723724429126</string>

`

To Reproduce
follow the required implementation

Expected behavior
show normal facbook login

Screenshots
Screenshot-2021-02-21-16-39-35-853-com-android-chrome

flutter_facebook_auth failing in login on Samsung and few other devices

Describe the bug
On few of the devices, we arent being able to login in our app using facebook account

Code Sample:-

Following is the code snippet which we are using to do facebook login:-

Future<bool> signInWithFacebook(BuildContext context) async {
try {
AccessToken result = await FacebookAuth.instance.login();
final AuthCredential credential = FacebookAuthProvider.credential(
result.token,
);
await _auth.signInWithCredential(credential);
DateTime now = new DateTime.now();
createDocIfNewUser('facebook', now);
_user.setData(await DatabaseService.getUser(_auth.currentUser));
_user.loggedInUsing = 'facebook';
_user.lastLoggedIn = now;
_user.defaultLanguage = _language;
_user.country = _country;
DatabaseService.updateUserInFirebase(_auth.currentUser.uid, _user);
_status = Status.VerifiedOTP;
notifyListeners();
Toast.show('Logged into Facebook', context);
return true;
} on FacebookAuthException catch (e) {
print(e.message);
_status = Status.Unauthenticated;
notifyListeners();
// TODO: remove error logs
Toast.show("Failed to sign in with Facebook: ${e.message}", context,
duration: 3);
return false;
}
}

Environment
Samsung devices.
To Reproduce
Please add your code to reproduce the issue

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots or videos to help explain your problem.

[iOS] Returns error 403 if user is not signed into facebook on safari and has facebook app installed

If I am signed into facebook on safari (regardless if I have the facebook app) it allows me to login from the browser bottom sheet that is opened within the app.

However, if I am not signed into facebook on safari AND if I have the facebook app installed, it will ask if I want to login via the facebook app, which you have to agree to to sign in as it doesn't let you sign in from the bottom sheet.

After being redirected to the facebook app, allowing to sign in, I get redirected back to the app and get an error 403 and no token to sign in/get creds.

Couldn't build on iOS

HI, I followed the guideline on Facebook develop website and yours for setting iOS, but i'm having this issue regarding the Include of non-modular header inside framework module 'FBSDKLoginKit.FBSDKCoreKitImport even if I set YES.
I also tried to delete the DerivedData folder, Runner.xcworkspace, Podfile.lock, flutter clean, update the pod, but still no succeed.
FBSDKLoginKit version is 7.1.1, the flutter-facebook-auth version is 0.3.2 and the min version is 10 because i have some other plugins who require it.
Do you have any suggestion on how to fix it?

Screenshot 2020-10-08 at 11 47 25

Screenshot 2020-10-08 at 11 46 48

Facebook login never ends on iOS

[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H15, locale en-KR)
    • Flutter version 1.22.3 at /usr/local/Caskroom/flutter/1.22.3/flutter
    • Framework revision 8874f21e79 (3 weeks ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/jaesunghong/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin installed
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.51.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (1 available)
    • **** iPhone (mobile) • **** • ios
      • iOS 13.5.1

After calling FacebookAuth.instance.login(), the web view pop up and Facebook sends me to the Facebook app. And then after I clicked the Continue as USERNAME button it sends me back to my app but the web view still persists and doesn't end the login process. Whenever I click on the Cancel button on the top left corner, it just throws FacebookAuthException with errorCode == 'CANCELLED'. I did check all the settings for iOS on my app and Facebook console.

web support

Thanks for the package! Is it planned to have web support soon for it?

Android fatal crash on physical and emulator devices

Getting a fatal crash on only Android devices when calling login on all API levels. iOS is working correctly with the same implementation.

Version: flutter_facebook_auth: ^0.3.3

Stack-trace:

D/AndroidRuntime(16247): Shutting down VM
E/AndroidRuntime(16247): FATAL EXCEPTION: main
E/AndroidRuntime(16247): Process: com.XXX.XXX, PID: 16247
E/AndroidRuntime(16247): java.lang.NoSuchMethodError: No static method createProxyAuthIntent(Landroid/content/Context;Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;ZZLcom/facebook/login/DefaultAudience;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent; in class Lcom/facebook/internal/NativeProtocol; or its super classes (declaration of 'com.facebook.internal.NativeProtocol' appears in /data/app/~~XXX-A==/com.XXX.XXX-XXX==/base.apk!classes2.dex)
E/AndroidRuntime(16247): 	at com.facebook.login.KatanaProxyLoginMethodHandler.tryAuthorize(KatanaProxyLoginMethodHandler.java:44)
E/AndroidRuntime(16247): 	at com.facebook.login.LoginClient.tryCurrentHandler(LoginClient.java:264)
E/AndroidRuntime(16247): 	at com.facebook.login.LoginClient.tryNextHandler(LoginClient.java:216)
E/AndroidRuntime(16247): 	at com.facebook.login.LoginClient.authorize(LoginClient.java:121)
E/AndroidRuntime(16247): 	at com.facebook.login.LoginClient.startOrContinueAuth(LoginClient.java:102)
E/AndroidRuntime(16247): 	at com.facebook.login.LoginFragment.onResume(LoginFragment.java:160)
E/AndroidRuntime(16247): 	at androidx.fragment.app.Fragment.performResume(Fragment.java:2748)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentStateManager.resume(FragmentStateManager.java:373)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1211)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1368)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(FragmentManager.java:1446)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1509)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2637)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentManager.dispatchResume(FragmentManager.java:2601)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentController.dispatchResume(FragmentController.java:269)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentActivity.onResumeFragments(FragmentActivity.java:478)
E/AndroidRuntime(16247): 	at androidx.fragment.app.FragmentActivity.onPostResume(FragmentActivity.java:467)
E/AndroidRuntime(16247): 	at android.app.Activity.performResume(Activity.java:8160)
E/AndroidRuntime(16247): 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4434)
E/AndroidRuntime(16247): 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476)
E/AndroidRuntime(16247): 	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
E/AndroidRuntime(16247): 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
E/AndroidRuntime(16247): 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
E/AndroidRuntime(16247): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
E/AndroidRuntime(16247): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(16247): 	at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(16247): 	at android.app.ActivityThread.main(ActivityThread.java:7656)
E/AndroidRuntime(16247): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16247): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime(16247): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
I/Process (16247): Sending signal. PID: 16247 SIG: 9
Lost connection to device.

Flutter doctor -v output:

[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.7 19H2, locale en-US)
    • Flutter version 1.22.3 at /Users/XXX/Developer/flutter
    • Framework revision 8874f21e79 (7 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/XXX/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.16.0

[✓] Connected device (1 available)
    • Pixel 3a (mobile) • 94TAY0SSBG • android-arm64 • Android 11 (API 30)

! Doctor found issues in 1 category.

Thanks for your help!

Token is getting printed

Line # 54 of flutter_facebook_auth.dart has a print statement

print("isLogged result $result");

I believe this can be removed.

Thanks for sharing the library.

Returns error #803 from Facebook Graph API when attempting login via Android

Here is the Debug Output in VS Code:

package:flutter/…/material/ink_well.dart:992
E/flutter (20656): #7      _InkResponseState.build.<anonymous closure> 
package:flutter/…/material/ink_well.dart:1098
E/flutter (20656): #8      GestureRecognizer.invokeCallback 
package:flutter/…/gestures/recognizer.dart:184
E/flutter (20656): #9      TapGestureRecognizer.handleTapUp 
package:flutter/…/gestures/tap.dart:524
E/flutter (20656): #10     BaseTapGestureRecognizer._checkUp 
package:flutter/…/gestures/tap.dart:284
E/flutter (20656): #11     BaseTapGestureRecognizer.handlePrimaryPointer 
package:flutter/…/gestures/tap.dart:219
E/flutter (20656): #12     PrimaryPointerGestureRecognizer.handleEvent 
package:flutter/…/gestures/recognizer.dart:477
E/flutter (20656): #13     PointerRouter._dispatch 
package:flutter/…/gestures/pointer_router.dart:78
E/flutter (20656): #14     PointerRouter._dispatchEventToRoutes.<anonymous closure> 
package:flutter/…/gestures/pointer_router.dart:124
E/flutter (20656): #15     _LinkedHashMapMixin.forEach  (dart:collection-patch/compact_hash.dart:377:8)
E/flutter (20656): #16     PointerRouter._dispatchEventToRoutes 
package:flutter/…/gestures/pointer_router.dart:122
E/flutter (20656): #17     PointerRouter.route 
package:flutter/…/gestures/pointer_router.dart:108
Launching lib\main.dart on Pixel 4 XL in debug mode...
✓ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...
Connecting to VM Service at ws://127.0.0.1:54127/qmr1H2zvLAI=/ws
I/facebook:(20656): sasasas
W/ActivityThread(20656): handleWindowVisibility: no activity for token android.os.BinderProxy@3734622
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/flutter (20656): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(500, SERVER_ERROR: [code] 1675030 [message]: Error performing query. [extra]: , null)
E/flutter (20656): #0      StandardMethodCodec.decodeEnvelope 
package:flutter/…/services/message_codecs.dart:572
E/flutter (20656): #1      MethodChannel._invokeMethod 
package:flutter/…/services/platform_channel.dart:161
E/flutter (20656): <asynchronous suspension>
E/flutter (20656): #2      MethodChannel.invokeMethod 
package:flutter/…/services/platform_channel.dart:334
E/flutter (20656): #3      FacebookAuth.login 
package:flutter_facebook_auth/flutter_facebook_auth.dart:32
E/flutter (20656): #4      signInWithFacebook 
package:thepondapp/SignIn.dart:26
E/flutter (20656): #5      Login.build.<anonymous closure> 
package:thepondapp/Login.dart:42
E/flutter (20656): #18     GestureBinding.handleEvent 
package:flutter/…/gestures/binding.dart:220
E/flutter (20656): #19     GestureBinding.dispatchEvent 
package:flutter/…/gestures/binding.dart:200
E/flutter (20656): #20     GestureBinding._handlePointerEvent 
package:flutter/…/gestures/binding.dart:158
E/flutter (20656): #21     GestureBinding._flushPointerEventQueue 
package:flutter/…/gestures/binding.dart:104
E/flutter (20656): #22     GestureBinding._handlePointerDataPacket 
package:flutter/…/gestures/binding.dart:88
E/flutter (20656): #23     _rootRunUnary  (dart:async/zone.dart:1206:13)
E/flutter (20656): #24     _CustomZone.runUnary  (dart:async/zone.dart:1100:19)
E/flutter (20656): #25     _CustomZone.runUnaryGuarded  (dart:async/zone.dart:1005:7)
E/flutter (20656): #26     _invoke1  (dart:ui/hooks.dart:267:10)
E/flutter (20656): #27     _dispatchPointerDataPacket  (dart:ui/hooks.dart:176:5)
E/flutter (20656):
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}
E/GraphResponse(20656): {HttpStatus: 404, errorCode: 803, subErrorCode: -1, errorType: OAuthException, errorMessage: (#803) Cannot query users by their username (CHANGE-ME)}

Send email verification if Facebook email is a Gmail email, so the user can sign in with both accounts

If Facebook email is a Gmail email, the user will be unable to sign in with Facebook unleass they verify their FB Gmail email,

Could the module send email verification if the Facebook email is gmail, and send email verificatoin?
More info: https://stackoverflow.com/a/63299674/422752

"In firebase, it is very important to verify user email account the first time they login with Facebook , by sending a verification email.

Once email is verified, you can login with both Facebook and Gmail if user is using @gmail.com as email address.

Facebook Login -> Click Link in Verification Email -> Gmail Login -> Facebook Login (OK)

Facebook Login -> Gmail Login -> Click Link in Verification Email -> Facebook Login (NOT OK)

If you did not verify the Facebook email before user logout and try to login with their gmail, you will not be able to login with Facebook again the moment they login with their gmail.

share  edit  follow  flag "

HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID 'MY_APP_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation.

When running the app after a clean build, an exception is reported in Android (but not iOS):

{HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID 'MY_APP_ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}

The exception only occurs after a clean build, when the app starts; it does not occur when signing in with Facebook (which works). I've followed the instructions in the plugin documentation to the letter.

Login failed for published apps

I have used this plugin to make Facebook login. In development environment everything works OK without any problem, i can login using my FB. But after i have published Test Version to Playstore, people are saying can not login using FB.

What is the problem ? How can i solve the issue ?

image

One of our users said he can not find our app in Facebook App listing. So why our app is not in this list ?

conflict with twitter auth

I'm working with twitter auth , but when use this package and set that code

import UIKit
import Flutter
import FBSDKCoreKit // <--- ADD THIS LINE

@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
    ) -> Bool {
        ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)// <--- ADD THIS LINE
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
    
    
    // <--- OVERRIDE THIS METHOD WITH THIS CODE
    override func application( _ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:] ) -> Bool { ApplicationDelegate.shared.application( app, open: url, sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String, annotation: options[UIApplication.OpenURLOptionsKey.annotation] )
    }
}

the twitter hanging when "redirect to the app" and when remove facebook code in AppDelegate.swift return twitter working again

getApplicationDocumentsDirectory from path_provider stops working

Describe the bug
Hello,

when I specify path_provider explicitly in pubspec.yaml, it's method getApplicationDocumentsDirectory stops working when there's flutter-facebook-auth provided already.

Environment
Add your flutter doctor -v

[√] Flutter (Channel stable, 1.22.4, on Microsoft Windows [Version 10.0.19041.630], locale en-US)
    • Flutter version 1.22.4 at C:\flutter
    • Framework revision 1aafb3a8b9 (12 days ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4


[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at C:\Users\DChichuk\AppData\Local\Android\Sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = C:\Users\DChichuk\AppData\Local\Android\Sdk
    • ANDROID_SDK_ROOT = C:\Users\DChichuk\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.51.1)
    • VS Code at C:\Users\DChichuk\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.16.0

[√] Connected device (1 available)
    • SM G986B (mobile) • 192.168.0.254:5555 • android-arm64 • Android 10 (API 29)

! Doctor found issues in 2 categories.

Add your pubspec.yaml
Add your Info.plist
Add your AndroidManifest.xml
Add your /app/res/values/strings.xml

To Reproduce
Add both deps to pubspec.yaml:

  path_provider: ^1.6.24
  flutter_facebook_auth: ^1.0.2

Try to call getApplicationDocumentsDirectory() from path_provider package.
Get exception with method not found meaning.

Expected behavior
getApplicationDocumentsDirectory() works.

Did not provide FULL description just because I worked this around already by removing path_provider from pubspec.yaml (added implicitly anyway), and just to bring this to your sight.
Feel free to delete otherwise.

Error al inicializar sesión. No se pudo acceder a su cuenta a través de esta aplicación. Inténtelo de nuevo más tarde.

Estoy usando su paquete para intentar autenticarme a través de Facebook, seguí sus pasos y vi el video, pero este error persiste.
También traté de usarlo aplicando una implementación de él con Flutterfire, pero independientemente, permanece en este error, sé que puede que no sea un error de lib, pero no necesitas algo más.
Al resolver problemas en los que se nos pide que insertemos un "OnCreate" en MainActivity.java, no coincide con mi código generado por el aleteo donde solo tengo MainActiviy.kt, pero quiero tomar esta duda, ¿ha cambiado algo de lo que está escrito hasta hoy? ¿O podría ser mi error de configuración?
Gracias por su atención ahora.
WhatsApp Image 2020-11-24 at 09 06 48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.