facebook / facebook-android-sdk

Used to integrate Android apps with Facebook Platform.

Home Page:https://developers.facebook.com/docs/android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unexpected "Invalid app id" error

michal-chojnacki opened this issue · comments

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?

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