Android Question facebook login problem

uniplan

Active Member
Licensed User
Longtime User
Hi, i have a problem into my login facebook...
i followed this steps,

https://www.b4x.com/android/forum/t...seauth-to-support-facebook.67954/#post-430482

but when i click on the facebook login, nothing to do and the event not raised
this is my unfiltered log

Timeline: Activity_launch_request id:uniplan.greenapp time:292640
** Activity (frmaccedi) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
Timeline: Activity_idle id: android.os.BinderProxy@10de126 time:292861
updateVisibility : ActivityRecord{168c6dd0 token=android.os.BinderProxy@a580b31 {uniplan.greenapp/uniplan.greenapp.frmaccedi}} show : true
(HTTPLog)-Static: isSBSettingEnabled false
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (frmaccedi) Resume **
Timeline: Activity_idle id: android.os.BinderProxy@a580b31 time:293125
topic sync succeeded
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false


Any idea for this problem?
Thank you
 

uniplan

Active Member
Licensed User
Longtime User
Hi @Erel ... i follow carefully the tutorial, but i have the same problem.
1) I create the facebook project
2) I enable the facebook login on the firebase and put the app id and app secret
3) I put the url callback of firebase into facebook app project configuration
4) I put inside additional libraries the file renamed into "facebook-android-sdk_old.aar"
5) I put the project facebook online
......
i don't know where i'm wrong.

.------------.

i see this in unfiltered log:

...
(HTTPLog)-Static: isSBSettingEnabled false
pool-7-thread-2 calls detatch()

KnoxVpnUidStorageknoxVpnSupported API value returned is false

Timeline: Activity_launch_request id:uniplan.greenapp time:33183114
** Activity (frmaccedi) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
Timeline: Activity_idle id: android.os.BinderProxy@3d9a60d8 time:33183366
updateVisibility : ActivityRecord{31d0334 token=android.os.BinderProxy@15404c53 {uniplan.greenapp/uniplan.greenapp.frmaccedi}} show : true
(HTTPLog)-Static: isSBSettingEnabled false

KnoxVpnUidStorageknoxVpnSupported API value returned is false

(HTTPLog)-Static: isSBSettingEnabled false
sending message to waiting queue (OnActivityResult)
topic sync succeeded
running waiting messages (1)
** Activity (frmaccedi) Resume **
Timeline: Activity_idle id: android.os.BinderProxy@15404c53 time:33183805
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false


See the red line...it's normal?
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
i try my application with new library

After click ok my login button with facebook i have the same behavior ,no popup facebook display and this is the unfiltered logs:
......
.....
(FIRST CLICK)
ViewPostImeInputStage ACTION_DOWN
pool-7-thread-2 calls detatch()
Timeline: Activity_launch_request id:uniplan.greenapp time:79341479
** Activity (frmaccedi) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
Timeline: Activity_idle id: android.os.BinderProxy@e40013a time:79341685
updateVisibility : ActivityRecord{38847970 token=android.os.BinderProxy@36eaa51 {uniplan.greenapp/uniplan.greenapp.frmaccedi}} show : true
(HTTPLog)-Static: isSBSettingEnabled false
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Facebook - ResultArrived: Intent { (has extras) }
Facebook success: com.facebook.login.LoginResult@19817d92
** Activity (frmaccedi) Resume **
Timeline: Activity_idle id: android.os.BinderProxy@36eaa51 time:79341979
topic sync succeeded

(SECOND CLICK)
ViewPostImeInputStage ACTION_DOWN
Timeline: Activity_launch_request id:uniplan.greenapp time:79354628
** Activity (frmaccedi) Pause, UserClosed = false **
performCreate Call secproduct feature valuefalse
performCreate Call debug elastic valuetrue
Timeline: Activity_idle id: android.os.BinderProxy@c72a6f9 time:79354827
updateVisibility : ActivityRecord{38847970 token=android.os.BinderProxy@36eaa51 {uniplan.greenapp/uniplan.greenapp.frmaccedi}} show : true
(HTTPLog)-Static: isSBSettingEnabled false
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Facebook - ResultArrived: Intent { (has extras) }
Facebook success: com.facebook.login.LoginResult@34d3c31
** Activity (frmaccedi) Resume **
Timeline: Activity_idle id: android.os.BinderProxy@36eaa51 time:79355128
topic sync succeeded
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false




I try to remove my facebook app and try to login into my app, in this case the popup of login facebook show, but not raised the event of login
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
This is another log ...with another phone (Samsung S6):

............
Class com.facebook.appevents.AppEvent failed lock verification and will run slower.
Class com.facebook.appevents.SessionEventsState failed lock verification and will run slower.
MSG_WINDOW_FOCUS_CHANGED 0
isCocktailBarDisplayed : false
** Activity (frmaccedi) Pause, UserClosed = false **
ThreadedRenderer.create() translucent=true
Input channel constructed: fd=115
setView = DecorView@58a025e[FacebookActivity] touchMode=true
** Service (firebasemessaging) Create **
** Service (firebasemessaging) Start **
dispatchAttachedToWindow
Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true -754212864} surfaceGenerationChanged=true
mHardwareRenderer.initialize() mSurface={isValid=true -754212864} hwInitialized=true
EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000, [1440x2560]-format:1
MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 1128) or=1
MSG_WINDOW_FOCUS_CHANGED 1
mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -754212864}
Starting input: tba=android.view.inputmethod.EditorInfo@755975b nm : uniplan.greenapp ic=null
[IMM] startInputInner - mService.startInputOrWindowGainedFocus
Input channel constructed: fd=118
Input channel destroyed: fd=97
finishComposingText on inactive InputConnection
finishComposingText on inactive InputConnection
MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
MSG_RESIZED: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
sending message to waiting queue (OnActivityResult)
MSG_WINDOW_FOCUS_CHANGED 1
topic sync succeeded
mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true -1105786880}
isCocktailBarDisplayed : false
Starting input: tba=android.view.inputmethod.EditorInfo@66fb210 nm : uniplan.greenapp ic=com.android.internal.widget.EditableInputConnection@e2fe109
[IMM] startInputInner - mService.startInputOrWindowGainedFocus
Input channel constructed: fd=84
Input channel destroyed: fd=118
MSG_WINDOW_FOCUS_CHANGED 0
running waiting messages (1)
Facebook - ResultArrived: Intent { launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 }(has extras) }
Facebook success: com.facebook.login.LoginResult@985df3c
Class com.google.android.gms.tasks.zzh failed lock verification and will run slower.
Class com.google.android.gms.tasks.zzg failed lock verification and will run slower.
** Activity (frmaccedi) Resume **
Class com.google.android.gms.tasks.zzc failed lock verification and will run slower.
mHardwareRenderer.destroy()#1
Relayout returned: oldFrame=[0,0][1440,2560] newFrame=[0,0][1440,2560] result=0x5 surface={isValid=false 0} surfaceGenerationChanged=true
mHardwareRenderer.destroy()#4
dispatchDetachedFromWindow
Input channel destroyed: fd=115
Class com.google.android.gms.tasks.zzc$1 failed lock verification and will run slower.
(HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
 
Upvote 0

uniplan

Active Member
Licensed User
Longtime User
yes...in the starter ..

Public auth As FirebaseAuth
Public facebook As FacebookSdk


Sub Service_Create

auth.Initialize("auth")
facebook.Initialize

End Sub
 

Attachments

  • Cattura.PNG
    Cattura.PNG
    3.6 KB · Views: 442
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
Because i get same things at log, did you figured out what was the problem?

B4X:
Logger connected to: 7e0d47c6
--------- beginning of system
--------- beginning of main
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
Facebook - ResultArrived: Intent { (has extras) }
Facebook success: com.facebook.login.LoginResult@1775ae34
** Activity (main) Resume **
 
Upvote 0

yiankos1

Well-Known Member
Licensed User
Longtime User
Oh I see, but where should I handle this event?
Sorry my friend. I can't really understand you. What do you mean by saying where should you handle this event? In order to check if user is created or not. This event is called after you registered with facebook.
 
Upvote 0
Top