CrossGeeks / FacebookClientPlugin

Facebook Client Plugin for Xamarin iOS and Android
MIT License
106 stars 32 forks source link

FacebookClientManager.Initialize(this); error Android #86

Open dalinet opened 3 years ago

dalinet commented 3 years ago

Bug Information

Xamarin.Facebook.FacebookSdkNotInitializedException has been thrown The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.

Version Number of Plugin: 2.2.1 Device Tested On: Simulator Tested On: Pixel 2 Version of VS: 8.7.8 Version of Xamarin: 4.8.0.1560 Versions of other things you are using:

Steps to reproduce the Behavior

Config All requeriments for Xamarin Android

Expected Behavior

Actual Behavior

Code snippet

Screenshotst

Captura de Pantalla 2020-11-02 a la(s) 21 35 58

dalinet commented 3 years ago

I solve this issue whit this two lines before the Initialize method

FacebookSdk.ApplicationId = "XXXXXXXXXXXXX"; ///<--- Your App ID
FacebookSdk.SdkInitialize(Android.App.Application.Context);