B4A Library Facebook - Extends FirebaseAuth to support Facebook

Alpandino

Member
Licensed User
You should never limit your questions to a single member.

I don't see how the timer is related to the authentication. My guess is that the problem is somewhere else.

I know it sound strange, but I did a lot of test and when I use a Timer object the the Auth_SignedIn event is not raised.
I'll do further experiments and I'll let you know.

Thanks
 

Daniel Uribe

Member
Licensed User
Longtime User
Hi Erel,

grettings from Venezuela

Nice to meet you, it´s great!!

I have a questions,

When i login first time no problem, after that i logout click and all ok.

The second time I click again log in with facebook and an error, it´s from facebook screen: (file.facebook_screen.png)

I don´t know why.. So, in the firebase console first I delete the registered user (look firebase_console.png)and after that from my facebook settings (not the facebook developer console but the normal user, look facebook_user_settings.png) and delete my app.

just so I could login it again.

This it´s the best way?
or is there another way

It´s a pleasure.

p.d: it´s posible get the profile image of user when log in with facebook or gmail?
 

Attachments

  • facebook_screen.png
    24 KB · Views: 285
  • facebook_user_settings.png
    289 KB · Views: 277
  • firebase_console.png
    120.7 KB · Views: 273
Last edited:

Alpandino

Member
Licensed User
I did other tests and... Ever was right, as usual.
The Timer doesn't influence the behavior of the authentication. It was my mistake: I initialized the FirebaseUser two time, one in the Starter Service, one in the main module. I removed this double initialization and now all works fine.
 

Daniel Uribe

Member
Licensed User
Longtime User
Are you signing out from both FacebookSDK and FirebaseAuth?

Yeap, when click signout button:


Sub btnSignOut_Click
Log("you click out!!")
Starter.auth.SignOutFromGoogle
Starter.facebook.SignOut
lblName.Text = "Goodbye!"
SetState
End Sub

setstate is same of your original code.

..Still error (facebook_screen.png) but in google work perfectly!!
 

Daniel Uribe

Member
Licensed User
Longtime User
Solved.

Was my key hash.. I put on facebook developer console with a bad number and facebook could not work properly.

I use another way to get the key hash

B4X:
Dim bc As ByteConverter
Dim raw() As Byte = bc.HexToBytes("85:58:1D:1D:E3:...".Replace(":", ""))
Dim su As StringUtils
Log(su.EncodeBase64(raw))

I get this code from you:

https://www.b4x.com/android/forum/threads/development-and-release-key-hash.59762/

Thanks a lot.!
 

StefanoAccorsi

Member
Licensed User
Longtime User
Thanks a lot @Erel. Configured and it works like a charm.

Now I'll wait for a method to get the AccessToken. Next, if I undestood it well, with an AccessToken you should be able to work with Graphs API with simple HTTP get and post and ... get or post whatever you want in FB.
 

devpialkt

Member
Licensed User
Longtime User
Need Help ,

When add Facebook.jar and Facebook.xml into B4A then compile it , I have this Error ...

 

Attachments

  • upload_2016-10-18_13-57-56.png
    25 KB · Views: 204

ercicco

New Member
Licensed User
I have this problem with Firebase when try to compile the code, some solution???
I have installed all reposition...

FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:122: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
 

tamba sylvester

Member
Licensed User
Longtime User
hello guys
when i try to build the above projects it gives me this error

Generating R file. Error
F:\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:122: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
F:\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:127: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
 

DonManfred

Expert
Licensed User
Longtime User
when i try to build the above projects it gives me this error
This is not related to this library. You should start a new thread in the questions forum and upload your project. I´m sure you have an error in your app´s setup for AppCompat....
 

tamba sylvester

Member
Licensed User
Longtime User
i get this error when i compile the application above

B4A version: 6.30
Parsing code. (0.01s)
Compiling code. (0.04s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. Error
F:\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:122: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
F:\FirebaseAuth\Objects\bin\extra\res1\res\values\values.xml:127: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.
 

tamba sylvester

Member
Licensed User
Longtime User
This is not related to this library. You should start a new thread in the questions forum and upload your project. I´m sure you have an error in your app´s setup for AppCompat....
it relates coz i cant run the firebase facebook auth in my IDE IT BRINGS that error shown
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…