Plugin.Firebase.Auth.Facebook 3.1.0

dotnet add package Plugin.Firebase.Auth.Facebook --version 3.1.0                
NuGet\Install-Package Plugin.Firebase.Auth.Facebook -Version 3.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Plugin.Firebase.Auth.Facebook" Version="3.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Plugin.Firebase.Auth.Facebook --version 3.1.0                
#r "nuget: Plugin.Firebase.Auth.Facebook, 3.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Plugin.Firebase.Auth.Facebook as a Cake Addin
#addin nuget:?package=Plugin.Firebase.Auth.Facebook&version=3.1.0

// Install Plugin.Firebase.Auth.Facebook as a Cake Tool
#tool nuget:?package=Plugin.Firebase.Auth.Facebook&version=3.1.0                

Auth Facebook

You can use Facebook Authentication to allow users to sign in to your app using their facebook account.

Installation

Nuget

NuGet

Install-Package Plugin.Firebase.Auth.Facebook

Setup

  • Follow the instructions for the basic setup
  • Enable Authentication at your project in the Firebase Console.
  • Add the following lines of code after calling CrossFirebase.Initialize():
#if IOS
  FirebaseAuthFacebookImplementation.Initialize(app, launchOptions, "your-facebook-id", "your-facebook-app-name");
#endif

Android specifics

  • Add the following code to your apps AndroidManifest.xml:
  <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>
  • Add facebook_app_id and fb_login_protocol_scheme to strings.xml:
  <string name="facebook_app_id">12345678</string>
  <string name="fb_login_protocol_scheme">fb12345678</string>
  • Call FirebaseAuthFacebookImplementation.HandleActivityResultAsync(requestCode, resultCode, data); from MainActivity.OnActivityResult(...)

Release notes

  • Version 3.1.0
    • Update to .net8
  • Version 2.0.1
    • Remove unnecessary UseMaui property from csproj files
    • Readd net6.0 tfm
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.0 90 11/9/2024
2.0.1 718 3/31/2023
2.0.0 219 3/26/2023