Native Facebook Login SDK Error on Android


I tried the sample project for Native Facebook Login ( and it seems to compile without warning, but when i tried it on an Android device, i get this exception

Uno.Exception: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
   at Android.Base.JNI.TryGetException(Android.Base.Primitives.JNIEnvPtr,[string])
   at Android.Base.JNI.CheckException(Android.Base.Primitives.JNIEnvPtr,[string])
   at Android.Base.JNI.CheckException(Android.Base.Primitives.JNIEnvPtr)
   at FacebookLoginModule.FacebookLoginPromise.Login()
   at Fuse.UpdateListener.Invoke()
   at Fuse.UpdateManager.ProcessOnces(Fuse.Stage,Uno.Collections.List<Uno.Exception>&)
   at Fuse.UpdateManager.Update(Fuse.Stage)
   at Fuse.UpdateManager.ProcessStages()
   at Fuse.UpdateManager.Update()
   at Outracks.Simulator.Client.Application.OnUpdate()
   at Fuse.App.OnTick(object,Uno.Platform.TimerEventArgs)
   at Uno.Platform.Display.OnTick(Uno.Platform.TimerEventArgs)
   at Uno.Platform.AndroidDisplay.OnFrameCallback(double,double)

I get this error with the sample project. Tried on a new project i get the same error.

On iOS it works ok. Any ideas?



Hi John,

that example resides on a WIP branch, which means it is not being actively maintained. So basically the fact that it throws some compilation errors isn’t surprising at all.

As it was outlined to you on the fuselibs ticket, someone has potentially solved the problem, and you can see what they did in this diff.

Hope this helps!