B4A Library Facebook - Extends FirebaseAuth to support Facebook

miker2069

Active Member
Licensed User
Longtime User
ok, solved. Appcombat ... and works fine.
Added Appcombat library solved the same error:

Generating R file. Error
C:\Users\DeSof\Downloads\FacebookExample\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:131: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
C:\Users\DeSof\Downloads\FacebookExample\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
 

desof

Well-Known Member
Licensed User
Longtime User
Why do I get this error?
I followed all the steps and could not connect

 

desof

Well-Known Member
Licensed User
Longtime User
Check the logs for any additional information.

Are you able to log in with Google?
Yes Erel with Google starts correctly!

As I interpret the message Facebook is telling me that the app is still in development.
Could it be that I'm proving an app before uploading it to Play?
Will it need to be uploaded to Play to work?

I do not know if this can help


B4X:
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Error occurred on line: 91 (Main)
Log in attempt failed: FacebookActivity could not be started. Please make sure you added FacebookActivity to the AndroidManifest.
    at com.facebook.login.LoginManager.startLogin(LoginManager.java:440)
    at com.facebook.login.LoginManager.logInWithReadPermissions(LoginManager.java:310)
    at anywheresoftware.b4x.objects.FacebookSdkWrapper.SignIn(FacebookSdkWrapper.java:115)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:753)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:343)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:157)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:78)
    at android.view.View.performClick(View.java:5207)
    at android.view.View$PerformClick.run(View.java:21168)
    at android.os.Handler.handleCallback(Handler.java:746)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:148)
    at android.app.ActivityThread.main(ActivityThread.java:5443)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
 
Last edited:

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
I followed all the steps in this tutorial, however it worked as expected.
When I call the facebook.SignIn function nothing happens.


Here is the video. what happens

Here is the log



here is the log without filters.



what i need to make to make this login with facebook works?

ps: i m using b4a 6.80, android 6.0.1 (galaxy s7 edge )

thx
 

MarcoRome

Expert
Licensed User
Longtime User

It probably failed to sign in to FB
Do you ckecked to enable Facebook SignIn in the Firebase console in AUTH tab ?
 

seanfogg

Member
Licensed User
Longtime User
Hi, I have followed the steps and run the demo app to test but keep getting this log error when trying to log in to facebook

error: SERVER_ERROR:
B4X:
 1675030 [message]: Error performing query. [extra]: Errors while executing operation "ProxyAuthAppLoginQuery": At Query.proxy_auth_app_login: Failed to resolve field.

Any idea as to what is causing it?
 

seanfogg

Member
Licensed User
Longtime User
I don't see how Java will help here. It seems like the Facebook project is misconfigured.
Ok have tried it on another phone and it works, is there a cache file used by the library that's used to store data that I can delete?
 

seanfogg

Member
Licensed User
Longtime User
Ok have tried it on another phone and it works, is there a cache file used by the library that's used to store data that I can delete?
Grrrr! It's bloody working on both phones now haha! Ignore me, thanks for your help anyway.
 

Alpandino

Member
Licensed User
Hi Smee,
I think you have to scroll the edit box at bottom.
 

Angel Garcia

Member
Licensed User
Hi, I have an issue, in other cell phones different than mine i cant get the email of the user when sign in, it returns Null. It returns correctly URL image and Name, but the email is Null, i already set the configuration for "Allow creation of multiple accounts with the same email address" off in console.
Can anybody know how to resolve this?.
Many thanks in advance!
 

Attachments

  • ConsErr.PNG
    36.6 KB · Views: 317

Marcus Araujo

Member
Licensed User
Longtime User

Hello, I'm getting similar results and I know the reason, but don't know how to fix it.

What happens: when I try to log in (Facebook), it asks for user permission, then goes back to the login screen and does nothing. Nothing at all. PS: I tried to login via Facebook using the same e-mail from my previous login via Google (this info is important!).

What I noticed: In firebase console, I saw that the .SignOut method did not work in server side - For firebase, I was still logged in via Google. So, when I try to login via Facebook, I infer it is denying my access...

What I did: I manually excluded the account in Firebase. Then I tried to login again via Facebook. Guess what? It worked!

My question: Is there any event triggered that I can see the "Access Denied" or any other login error message, from Facebook library or FirebaseAuth? SignedIn doesn't help.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…