Dim
Dim

Reputation: 4807

Facebook api invalid app iD

I have some problem with facebook SKD. I get invalid app ID when I am trying to login. Can you please help me figure out what the problem is?

enter image description here

My facebook app looks like this:

enter image description here

Manifest:

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.facebook.FacebookActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" />

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="70208723325****" />
</application>

Upvotes: 1

Views: 8789

Answers (2)

Mongi Zaidi
Mongi Zaidi

Reputation: 1041

In case anyone has this problem, I fixed it with not putting the appId value directly in the manifest file. Instead you should put it in strings and then in manifest you put

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

It's strange but it works for me.

Upvotes: 3

Siva Sonai
Siva Sonai

Reputation: 105

1.Try to change the facebook status and review as yes. 2.Enter the Key hash value (Setting -> keyhash).

Change the facebook status and review

Upvotes: 0

Related Questions