After a lot of trouble with JavaObject, finally make it to work in few minutes with Reflection lib:
B4X:
Dim r As Reflector
r.Target = facebook
Dim rx As Reflector
rx.Target = r.GetField("loginManager")
Log(rx.GetField("loginBehavior"))
rx.SetField("loginBehavior", "WEB_VIEW_ONLY", "com.facebook.login.LoginBehavior")
Log(rx.GetField("loginBehavior"))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.