Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show how to get data out of the AccessToken in NativeFacebookLogin #35

Open
ollef opened this issue Dec 6, 2016 · 6 comments
Open

Show how to get data out of the AccessToken in NativeFacebookLogin #35

ollef opened this issue Dec 6, 2016 · 6 comments
Projects

Comments

@ollef
Copy link
Contributor

ollef commented Dec 6, 2016

Several users have asked for this.

@ollef ollef self-assigned this Dec 6, 2016
@jesusmartinoza
Copy link

I made the code for android but can't find the NativeFacebookLogin project :/

@jesusmartinoza
Copy link

Here is the code for android
https://github.com/Betobit/fuse-samples/tree/master/Samples/NativeFacebookLogin

When I finish the iOS version I do a pull request :)

@ollef
Copy link
Contributor Author

ollef commented Dec 29, 2016

Wow, nice work!

The original code is on the feature-NativeFacebookLogin branch, so make the PR against that. It'll be merged to master eventually, but is on a branch for internal reasons (specifically because it uses Gradle, which requires a non-standard Uno flag which messes with our internal testing).

@jesusmartinoza
Copy link

Oh I missed that! A PR will be done, thank you.

@jmoleiro
Copy link

jmoleiro commented Jul 9, 2017

Hi!

I tried the sample project for Native Facebook Login (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

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?

@jesusmartinoza
Copy link

jesusmartinoza commented Jul 9, 2017 via email

@AndrewEQ AndrewEQ added this to To Do in Help Nov 1, 2018
@ollef ollef removed their assignment May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Help
  
To Do
Development

No branches or pull requests

3 participants