Facebook provider unconfigured. Make sure to add a `facebook_application_id` string

后端 未结 3 1503
忘了有多久
忘了有多久 2021-01-20 09:43

I\'m using Firebase UI Sign In and trying to implement Facebook sign in into my android app. When launching the firebase ui activity I get:

\"java.lang.Ille

相关标签:
3条回答
  • 2021-01-20 10:22

    Add Facebook Provider in Manifest as mentioned here.

    Append your app id to the end of the authorities value. For example if your Facebook app id is 1234, the declaration looks like:

    <provider android:authorities="com.facebook.app.FacebookContentProvider1234"
              android:name="com.facebook.FacebookContentProvider"
              android:exported="true" />
    
    0 讨论(0)
  • 2021-01-20 10:30

    Use this is AndroidManifest.xml

    <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/FACEBOOK_FB_APP_ID" />
    

    and in strings.xml

        <string name="FACEBOOK_FB_APP_ID">{application id}</string>
    
    0 讨论(0)
  • 2021-01-20 10:43

    Alright I was thinking that the strings provided by firebase and the ones provided by facebook where the same and I had to have only a pair of them, the truth is that they are different and add the ones provided by firebase and facebook to your string resources, that will solve the problem.

    0 讨论(0)
提交回复
热议问题