Android Question FirebaseAuth Facebook login

Stefano Di Chiano

Active Member
Licensed User
I'm trying to integrate Google and Facebook login in my project. The login with Google worked, but I'm having issues implementing Facebook.
When I run my project I get the following error:

C:\Android\tools\..\extras\b4a_local\unpacked-facebook-common-5.5.0.androidx-63703538644000\res\values\values.xml:71: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.NoActionBar'.
C:\Android\tools\..\extras\b4a_local\unpacked-facebook-common-5.5.0.androidx-63703538644000\res\values\values.xml:76: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.AppCompat.Dialog'.

My extras folder is not under tools though.
Should I move/copy the folder?

I'm using B4A version 9.80.
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
'End of default text.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
'************ Facebook Login ****************
AddApplicationText( <activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>)
'************ Facebook Login (end) **********
CreateResource(values, facebook.xml, <resources>
<string name="facebook_app_id">509085083330445</string>
</resources>)
 
Top