# Native Facebook Login SDK Error on Android

**URL:** <https://forums.fusetools.com/t/native-facebook-login-sdk-error-on-android/6048>\
**Category:** How-to Discussions\
**Created:** [July 9, 2017, 12:27am UTC](https://forums.fusetools.com/t/native-facebook-login-sdk-error-on-android/6048 "2017-07-09T00:27:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Mohl](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/john_mohl/32/66_2.png) [@John\_Mohl](https://forums.fusetools.com/u/John_Mohl)\
**Post date:** [July 9, 2017, 12:27am UTC](https://forums.fusetools.com/t/native-facebook-login-sdk-error-on-android/6048/1 "2017-07-09T00:27:12Z")

</div>

Hi!

I tried the sample project for Native Facebook Login ([https://github.com/fusetools/fuse-samples/tree/feature-NativeFacebookLogin/Samples/NativeFacebookLogin](https://github.com/fusetools/fuse-samples/tree/feature-NativeFacebookLogin/Samples/NativeFacebookLogin)) and it seems to compile without warning, but when i tried it on an Android device, i get this exception

```auto
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?

Thanks

John

---

<div class="post-metadata">

**Author:** ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)\
**Post date:** [July 9, 2017, 9:06am UTC](https://forums.fusetools.com/t/native-facebook-login-sdk-error-on-android/6048/2 "2017-07-09T09:06:35Z")

</div>

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](https://github.com/fusetools/fuse-samples/issues/35#issuecomment-313890056), someone has potentially solved the problem, and you can see what they did [in this diff](https://github.com/fusetools/fuse-samples/compare/feature-NativeFacebookLogin...jesusmartinoza:feature-NativeFacebookLogin).

Hope this helps!
