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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Auth Facebook
You can use Facebook Authentication to allow users to sign in to your app using their facebook account.
Installation
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
- The
facebookId
andfacebookAppName
can be accessed at Facebook Developers
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
andfb_login_protocol_scheme
tostrings.xml
:
<string name="facebook_app_id">12345678</string>
<string name="fb_login_protocol_scheme">fb12345678</string>
- Call
FirebaseAuthFacebookImplementation.HandleActivityResultAsync(requestCode, resultCode, data);
fromMainActivity.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 | Versions 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.
-
net8.0
- Plugin.Firebase.Auth (>= 3.1.0)
- Plugin.Firebase.Core (>= 3.1.0)
-
net8.0-android34.0
- Plugin.Firebase.Auth (>= 3.1.0)
- Plugin.Firebase.Core (>= 3.1.0)
- Xamarin.Facebook.Android (>= 11.2.0.1)
-
net8.0-ios18.0
- Plugin.Firebase.Auth (>= 3.1.0)
- Plugin.Firebase.Core (>= 3.1.0)
- Xamarin.Facebook.iOS (>= 12.2.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.