DrMoriarty / godot-facebook

Facebook module for Godot Game Engine (android and iOS)
MIT License
81 stars 23 forks source link

crashes at _fb.isLoggedIn() on IOS #16

Closed anisc closed 3 years ago

anisc commented 3 years ago

It work on android but on ios it crashes, is there any thing that need to be added ( framework on xcode or something on the plist ) ?

DrMoriarty commented 3 years ago

Thanks for your response. I will check it soon.

DrMoriarty commented 3 years ago

I checked this method and it should work as expected. Try to check frameworks in your project. facebook.xcframework should be Embed & Sign. For example my frameworks: Снимок экрана 2021-02-08 в 18 16 28

anisc commented 3 years ago

First, thank you so much for the response and for the plugins As for the issue here is some screenshots from my code, build and the crache: screen3

screen1 screen2

DrMoriarty commented 3 years ago

It crashes in login function. You can see it in your stack.

DrMoriarty commented 3 years ago

@anisc I updated plugin to 0.1.5. Check it.

anisc commented 3 years ago

It doesn't caches now but still having this error : 2021-02-08 13:10:51.811200-0700 chkobbatn[930:484287] ERROR: Condition '!callbackOb' is true. 2021-02-08 13:10:51.811385-0700 chkobbatn[930:484287] At: /Volumes/Work1/projects/godotframework/plugins/godot-facebook/ios-framework/gdnative_ios/src/Facebook.mm:272:callApi_block_invoke() - Condition '!callbackOb' is true. I'm pretty sure I'm doing something wrong but what is it ?

DrMoriarty commented 3 years ago

@anisc You should provide callback object and method to some api calls. For example: user_profile(callback_object: Object, callback_method: String)

anisc commented 3 years ago

@DrMoriarty the part that i don't understand is that it work on android but not on IOS. Is the code suppose to be different on different platforms ? this is what I'm using for the user profile facebook.user_profile(self,"request _profile success") Could you plz show me an exemple?

DrMoriarty commented 3 years ago

@anisc There was issue with iOS input parameters. I uploaded v0.1.6, check it please.

anisc commented 3 years ago

@DrMoriarty all is perfect thank you so much bro ;)