SDKBox: Facebook Login

Facebook login through the provided SDKBox plugin doesn’t work.

I either get this crash:

2015-09-08 12:53:23.619 i Cube Quest[1050:1312516] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString setString:]: nil argument'

or this error code from facebook itself:

Error Code 308

Can you try this sample and see if it works on your device?
https://github.com/darkdukey/sdkbox-facebook-sample

Same issue here cocos2Djs Facebook error after login NSInvalidArgumentException

@thomasjab can you try the sample as well?
https://github.com/darkdukey/sdkbox-facebook-sample

If we can somehow reproduce this issue, it will help us fix them quickly.

Ok, I was able to produce this crash, investigating, right now.

Thanks, i tried the sample but there are some error to link .h/.cpp i don’t know why…
My knowledge in c++/objectiveC are very limited

What is the status?

We manage to fix this bug, you can try it out with our nightly build with following command

sdkbox import facebook --staging

I am integrating sdkbox for facebook.
I encountered this issue too.
What about the status?
How to fix it?

1 Like

I test the above sample for Android with pre-built version 3.5. I can use the app for the first login but when log out and login again, facebook informs “Sorry, something went wrong. We’re working on getting it fixed as soon as we can”.

How should i fix it?

I solved my problem.

I used pre-built v3.7.1 with NDK r9d before and it had a compilation problem even with Hello world example so i had to downgrade to pre-built v3.5.

After investigating, i upgrade NDK to r10e and use v.3.7.1 again, SDKBox Facebook can run without any issue.

Thanks.

This issue was fixed with 1.2.5 release.

1 Like