Android Question Facebook SDK Issue with B4A 13.00 (SOLVED) - The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first

virpalacios

Active Member
Licensed User
Longtime User
Hi All, Good (Morning,AfterNoon or Night) 😊, I have been trying the New B4A 13 in a test environment before putting it in production, so my first compilation is the Sample Auth for Google and Facebook, I updated the Facebook Library to 2.01, so it compiled fine, but after it started I got this message:

"The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.

This Sample App is Erel's stardard Auth test App, with the necesary keys and tokens in manifest file and works fine on the 12.80 environment. In addition I tested the B4A 13 version only the google authentication part and it works fine!

I saw a similar post in the forum but it hasn't a conclusive insigth.

Any comment will be very appreciatedπŸ™

Best Regards
 

virpalacios

Active Member
Licensed User
Longtime User
Hi , Sure Here is the Log, I am facebook.initialize in starter service, i am also including the test app,

Thanks In Advance!!!


Logs for Auth App:
Registro conectado a: AJDRUT2606002217
--------- beginning of main
*** Service (starter) Create ***
starter_service_create (java line: 176)
The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
    at com.facebook.internal.Validate.sdkInitialized(Validate.kt:129)
    at com.facebook.login.LoginManager.<init>(LoginManager.kt:1398)
    at com.facebook.login.LoginManager$Companion.getInstance(LoginManager.kt:1319)
    at com.facebook.login.LoginManager.getInstance(Unknown Source:2)
    at anywheresoftware.b4x.objects.FacebookSdkWrapper.Initialize2(FacebookSdkWrapper.java:91)
    at anywheresoftware.b4x.objects.FacebookSdkWrapper.Initialize(FacebookSdkWrapper.java:81)
    at mc.auth.app.starter._service_create(starter.java:176)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
    at mc.auth.app.starter.onCreate(starter.java:56)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:5289)
    at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2686)
    at android.os.Handler.dispatchMessage(Handler.java:114)
    at android.os.Looper.loopOnce(Looper.java:206)
    at android.os.Looper.loop(Looper.java:296)
    at android.app.ActivityThread.main(ActivityThread.java:9155)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1018)
*** Service (starter) Create ***
starter_service_create (java line: 176)
The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first.
    at com.facebook.internal.Validate.sdkInitialized(Validate.kt:129)
    at com.facebook.login.LoginManager.<init>(LoginManager.kt:1398)
    at com.facebook.login.LoginManager$Companion.getInstance(LoginManager.kt:1319)
    at com.facebook.login.LoginManager.getInstance(Unknown Source:2)
    at anywheresoftware.b4x.objects.FacebookSdkWrapper.Initialize2(FacebookSdkWrapper.java:91)
    at anywheresoftware.b4x.objects.FacebookSdkWrapper.Initialize(FacebookSdkWrapper.java:81)
    at mc.auth.app.starter._service_create(starter.java:176)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:201)
    at mc.auth.app.starter.onCreate(starter.java:56)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:5289)
    at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
 

Attachments

  • TestApp.zip
    3.1 KB · Views: 23
Upvote 0
Top