facebook / facebook-android-sdk

Used to integrate Android apps with Facebook Platform.
https://developers.facebook.com/docs/android
Other
6.07k stars 3.64k forks source link

Unexpected "Invalid app id" error #1226

Open michal-chojnacki opened 5 months ago

michal-chojnacki commented 5 months ago

Checklist before submitting a bug report

Java version

17

Android version

14

Android SDK version

16.2.0

Installation platform & version

Gradle

Package

Login

Goals

Sign user in

Expected results

User is successuly signed

Actual results

"Invalid app id" error:

Zrzut ekranu 2023-11-28 o 15 37 20

Steps to reproduce

Unfortunately I have no steps to reproduce.

During testing of my app I've been reported that one user is not able to sign in by Facebook due to "Invalid app id" error. I wasn't able to reproduce this error, all my attempts for many devices were working correctly. For the user who encountered the problem signing in started working after reinstalling the app.

This id is provided in the app by the manifest metadata

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

Do you have any idea what could caused the error? What can I do in my app to make sure this problem will not happen in the future?

Sahril1235 commented 5 months ago
    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id" />