Android Question Facebook - Extends FirebaseAuth - Error Msg: "Invalid key hash..."

Bob Spielen

Active Member
Licensed User
Trying to login with Firebase&Facebook procedure.

I followed all orientations on : https://www.b4x.com/android/forum/t...seauth-to-support-facebook.67954/#post-430482

Tried severals hash keys with "keytool.exe" in :

Login with Google account works fine.

Login with Facebook ..I get allways then error msg from Facebook:


1587596774516.png








Log message (not filtered) is:





Logger connected to: asus ASUS_X008D
--------- beginning of main
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
*** Debugger waiting for connection (1) ***
Copying updated assets files (7)
*** Service (starter) Create ***
Class com.google.android.gms.common.api.GoogleApiClient$Builder failed lock verification and will run slower.
Class com.google.android.gms.common.internal.GmsClientEventManager failed lock verification and will run slower.
Class com.facebook.FacebookSdk failed lock verification and will run slower.
Class com.facebook.appevents.AppEventsLoggerImpl failed lock verification and will run slower.
Please set a value for AutoLogAppEventsEnabled. Set the flag to TRUE if you want to collect app install, app launch and in-app purchase events automatically. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/doc...tarted-app-events-android#disable-auto-events.
You haven't set a value for AdvertiserIDCollectionEnabled. Set the flag to TRUE if you want to collect Advertiser ID for better advertising and analytics results. To request user consent before collecting data, set the flag value to FALSE, then change to TRUE once user consent is received. Learn more: https://developers.facebook.com/doc...tarted-app-events-android#disable-auto-events.
Class com.facebook.appevents.internal.ActivityLifecycleTracker failed lock verification and will run slower.
Class androidx.localbroadcastmanager.content.LocalBroadcastManager failed lock verification and will run slower.
beginTransaction()
getaddrinfo: graph.facebook.com get result from proxy gai_error = 0
[socket][1] connection graph.facebook.com/157.240.222.16:443;LocalPort=-1(0)
endTransaction()
[Posix_connect Debug]Process ptscholle.b4x :443
[socket][/192.168.1.4:41914] connected
ssl=0x7437f17e40 NativeCrypto_SSL_do_handshake fd=0x740d5d6a48 shc=0x740d5d6a4c timeout_millis=0 client_mode=1 npn=0x0
ssl=0x7437f17e40 info_callback calling handshakeCompleted
[socket][2] connection graph.facebook.com/157.240.222.16:443;LocalPort=-1(0)
[Posix_connect Debug]Process ptscholle.b4x :443
[socket][/192.168.1.4:41915] connected
ssl=0x7431448180 NativeCrypto_SSL_do_handshake fd=0x740d6dbe38 shc=0x740d6dbe3c timeout_millis=0 client_mode=1 npn=0x0
ssl=0x7431448180 info_callback calling handshakeCompleted
Enter while loop.
Class com.facebook.AccessTokenManager failed lock verification and will run slower.
Class com.facebook.login.LoginManager failed lock verification and will run slower.
Class com.facebook.AccessTokenCache failed lock verification and will run slower.
** Service (starter) Start **
Class com.facebook.ProfileManager failed lock verification and will run slower.
ssl=0x7437f17e40 cert_verify_callback => 1
ssl=0x7437f17e40 NativeCrypto_SSL_get_certificate => NULL
[OkHttp] sendRequest>>
[OkHttp] sendRequest<<
ssl=0x7431448180 cert_verify_callback => 1
ssl=0x7431448180 NativeCrypto_SSL_get_certificate => NULL
[OkHttp] sendRequest>>
ssl=0x7437f17e40 info_callback calling handshakeCompleted
[OkHttp] sendRequest<<
ssl=0x7431448180 info_callback calling handshakeCompleted
onAuthStateChanged: com.google.firebase.auth.internal.zzl@ee8bfb4
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Unexpected activity pause without a matching activity resume. Logging data may be incorrect. Make sure you call activateApp from your Application's onCreate method
Class com.facebook.appevents.internal.ActivityLifecycleTracker$4 failed lock verification and will run slower.
** Activity (main) Pause, UserClosed = false **
Class com.facebook.appevents.internal.ActivityLifecycleTracker$4$1 failed lock verification and will run slower.
register, handle(0x740ed9aa80) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
SetAppTypeFace- try to flip, app = ptscholle.b4x
Typeface getFontPathFlipFont - systemFont = default#default
Wrong owner. Perhaps a late disconnect
Wrong owner. Perhaps a late disconnect
[OkHttp] sendRequest>>
[OkHttp] sendRequest<<
DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@ba47d7f[]
Add to mViews: DecorView@ba47d7f[login], this = android.view.WindowManagerGlobal@c5e3a85
CanvasContext() 0x740fa13000
hardware acceleration is enabled, this = ViewRoot{1bf0b4e ptscholle.b4x/ptscholle.b4x.login,ident = 2}
DecorView setVisiblity: visibility = 0, Parent = ViewRoot{1bf0b4e ptscholle.b4x/ptscholle.b4x.login,ident = 2}, this = DecorView@ba47d7f[login]
Wrong owner. Perhaps a late disconnect
Wrong owner. Perhaps a late disconnect
com.mediatek.common.telephony.IOnlyOwnerSimSupportClazz exists on mapping table : false
Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
Enter while loop.
Surface::allocateBuffers(this=0x7422f26c00)
CanvasContext() 0x740fa13000 initialize window=0x7422f26c00, title=ptscholle.b4x/ptscholle.b4x.login
Surface::connect(this=0x7422f26c00,api=1)
[ANDROID_RECORDABLE] format: 1
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
** Activity (login) Create, isFirst = true **
Wrong owner. Perhaps a late disconnect
Wrong owner. Perhaps a late disconnect
** Activity (login) Resume **
Enter while loop.
onWindowFocus: null softInputMode=290 first=true flags=#81810100
Enter while loop.
CacheTexture 3 upload: x, y, width height = 0, 0, 109, 297
register, handle(0x740ed9b500) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
register, handle(0x740ed9cb80) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
~CanvasContext() 0x740fa0f800
Do partial code cache collection, code=24KB, data=30KB
After code cache collection, code=23KB, data=29KB
Increasing code cache capacity to 128KB
register, handle(0x740effdc40) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
Surface::disconnect(this=0x7422f2a400,api=1)
unregister, handle(0x740effb480) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
unregister, handle(0x740ed220c0) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
unregister, handle(0x740ed9aa80) (w:720 h:1280 s:720 f:0x1 u:0x000b00)
Surface::disconnect(this=0x7422f2a400,api=1)
CacheTexture 3 upload: x, y, width height = 0, 69, 79, 287
ProgramCache.generateProgram: 68724719680
DecorView setVisiblity: visibility = 4, Parent = ViewRoot{1d1a0da ptscholle.b4x/ptscholle.b4x.main,ident = 0}, this = DecorView@896a1d2[main]
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
Facebook - SignIn
Class com.facebook.appevents.AppEvent failed lock verification and will run slower.
Class com.facebook.appevents.SessionEventsState failed lock verification and will run slower.
** Activity (login) Pause, UserClosed = false **
Class androidx.fragment.app.FragmentManager failed lock verification and will run slower.
Class androidx.fragment.app.FragmentStore failed lock verification and will run slower.
Class androidx.fragment.app.FragmentLifecycleCallbacksDispatcher failed lock verification and will run slower.
Class androidx.lifecycle.ViewModel failed lock verification and will run slower.
SetAppTypeFace- try to flip, app = ptscholle.b4x
Typeface getFontPathFlipFont - systemFont = default#default
Class androidx.lifecycle.LiveData failed lock verification and will run slower.
Class androidx.lifecycle.LiveData$1 failed lock verification and will run slower.
beginTransaction()
endTransaction()
Class androidx.arch.core.executor.ArchTaskExecutor failed lock verification and will run slower.
Class androidx.arch.core.executor.DefaultTaskExecutor failed lock verification and will run slower.
Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
at void androidx.core.view.ViewCompat.requestApplyInsets(android.view.View) (ViewCompat.java:2352)
at void androidx.fragment.app.FragmentStateManager.createView(androidx.fragment.app.FragmentContainer) (FragmentStateManager.java:331)
at void androidx.fragment.app.FragmentManager.moveToState(androidx.fragment.app.Fragment, int) (FragmentManager.java:1187)
at void androidx.fragment.app.FragmentManager.moveToState(androidx.fragment.app.Fragment) (FragmentManager.java:1356)
at void androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManager.java:1434)
at void androidx.fragment.app.FragmentManager.moveToState(int, boolean) (FragmentManager.java:1497)
at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:447)
at void androidx.fragment.app.FragmentManager.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManager.java:2169)
at void androidx.fragment.app.FragmentManager.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManager.java:1992)
at void androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManager.java:1947)
at boolean androidx.fragment.app.FragmentManager.execPendingActions(boolean) (FragmentManager.java:1849)
at void androidx.fragment.app.FragmentManager.dispatchStateChange(int) (FragmentManager.java:2629)
at void androidx.fragment.app.FragmentManager.dispatchActivityCreated() (FragmentManager.java:2577)
at void androidx.fragment.app.FragmentController.dispatchActivityCreated() (FragmentController.java:247)
at void androidx.fragment.app.FragmentActivity.onStart() (FragmentActivity.java:541)
at void android.app.Instrumentation.callActivityOnStart(android.app.Activity) (Instrumentation.java:1248)
at void android.app.Activity.performStart() (Activity.java:6718)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2687)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2789)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1527)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:110)
at void android.os.Looper.loop() (Looper.java:208)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6267)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1063)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:924)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/ptscholle.b4x-2/base.apk"],nativeLibraryDirectories=[/data/app/ptscholle.b4x-2/lib/arm64, /system/lib64, /vendor/lib64, /system/vendor/lib64]]
at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
at void androidx.core.view.ViewCompat.requestApplyInsets(android.view.View) (ViewCompat.java:2352)
at void androidx.fragment.app.FragmentStateManager.createView(androidx.fragment.app.FragmentContainer) (FragmentStateManager.java:331)
at void androidx.fragment.app.FragmentManager.moveToState(androidx.fragment.app.Fragment, int) (FragmentManager.java:1187)
at void androidx.fragment.app.FragmentManager.moveToState(androidx.fragment.app.Fragment) (FragmentManager.java:1356)
at void androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(androidx.fragment.app.Fragment) (FragmentManager.java:1434)
at void androidx.fragment.app.FragmentManager.moveToState(int, boolean) (FragmentManager.java:1497)
at void androidx.fragment.app.BackStackRecord.executeOps() (BackStackRecord.java:447)
at void androidx.fragment.app.FragmentManager.executeOps(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManager.java:2169)
at void androidx.fragment.app.FragmentManager.executeOpsTogether(java.util.ArrayList, java.util.ArrayList, int, int) (FragmentManager.java:1992)
at void androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(java.util.ArrayList, java.util.ArrayList) (FragmentManager.java:1947)
at boolean androidx.fragment.app.FragmentManager.execPendingActions(boolean) (FragmentManager.java:1849)
at void androidx.fragment.app.FragmentManager.dispatchStateChange(int) (FragmentManager.java:2629)
at void androidx.fragment.app.FragmentManager.dispatchActivityCreated() (FragmentManager.java:2577)
at void androidx.fragment.app.FragmentController.dispatchActivityCreated() (FragmentController.java:247)
at void androidx.fragment.app.FragmentActivity.onStart() (FragmentActivity.java:541)
at void android.app.Instrumentation.callActivityOnStart(android.app.Activity) (Instrumentation.java:1248)
at void android.app.Activity.performStart() (Activity.java:6718)
at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2687)
at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2789)
at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1527)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:110)
at void android.os.Looper.loop() (Looper.java:208)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6267)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1063)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:924)
DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@179741e[]
Add to mViews: DecorView@179741e[FacebookActivity], this = android.view.WindowManagerGlobal@c5e3a85
CanvasContext() 0x740fa0f800
hardware acceleration is enabled, this = ViewRoot{ee98f8a ptscholle.b4x/com.facebook.FacebookActivity,ident = 3}
DecorView setVisiblity: visibility = 0, Parent = ViewRoot{ee98f8a ptscholle.b4x/com.facebook.FacebookActivity,ident = 3}, this = DecorView@179741e[FacebookActivity]
Surface::allocateBuffers(this=0x7422f2a400)
CanvasContext() 0x740fa0f800 initialize window=0x7422f2a400, title=ptscholle.b4x/com.facebook.FacebookActivity
Surface::connect(this=0x7422f2a400,api=1)
[ANDROID_RECORDABLE] format: 1
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
onWindowFocus: null softInputMode=288 first=true flags=#1810100
register, handle(0x740dbb2800) (w:720 h:1184 s:720 f:0x1 u:0x000b00)
register, handle(0x740dbb3940) (w:720 h:1184 s:720 f:0x1 u:0x000b00)
register, handle(0x740ed22540) (w:720 h:1184 s:720 f:0x1 u:0x000b00)
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
beginTransaction()
endTransaction()
Check isMmsSendPdu
PDU read len:8192
MMS PDU Type:31:139
[OkHttp] sendRequest<<
Wrong owner. Perhaps a late disconnect
Wrong owner. Perhaps a late disconnect
close [socket][::/:::6777]
close [socket][::/:::6778]



Can anybody help me with any orientation......

Thanks in advance
 

Bob Spielen

Active Member
Licensed User
The logs do not look related to the error message. All that I can say is that the hash value is probably incorrect.

You told in the tuto that "The alias in the command should be B4A" ... would the command line then be:

keytool -exportcert -alias "B4X" -keystore "C:\Users\bobsp\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 -binary | "C:\OpenSSL\bin\openssl" base64

?
 
Upvote 0

Bob Spielen

Active Member
Licensed User
B4A not B4X.
Yes ..I did it and unfortunately still having problem, can you tell me which is the RELEASE_KEY_PATH because I realised that changing this path I change also the Hash Key.....

In the command:

keytool -exportcert -alias B4A -keystore <RELEASE_KEY_PATH> | "C:\OpenSSL\bin\openssl" sha1 -binary | "C:\OpenSSL\bin\openssl" base64

Thank you very much in advance...
 
Upvote 0
Top