Reputation: 31
While trying to use Facebook SDK on my Android App, I got this error:
"Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog."
After reading many posts on this subject, from other people getting the same issue and succeeded in correcting it, it's still impossible for me to get the Facebook SDK working… I suppose there is something wrong between the app configuration on Facebook and my Android project, but I don't understand what.
This is my application configuration on Facebook :
The configuration for Android on Facebook :
And my Android project :
strings.xml contains :
<string name="app_id">752068304844308</string> <string name="app_name">TestFSdk</string> --> is it usefull ?
AndroidManifest.xml :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="fr.laposte.testfsdk" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme"> <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/app_id"/> <activity android:name="fr.laposte.testfsdk.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.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:label="@string/app_name" /> </application> </manifest>
Do you see something wrong ?
Thank you for your help.
Upvotes: 3
Views: 5118
Reputation: 11
According to documents https://developers.facebook.com/docs/android/share?locale=es_ES
and add
.setApplicationName("Display Name")
Upvotes: 1
Reputation: 21
I had a similar issue. I was using SetApplicationName()
in the ShareDialogBuilder to set a name that was different to the facebook Display Name. They must match!
Upvotes: 2
Reputation: 1216
Please check name in app(in your manifest file) and name of application on facebook().
Upvotes: 2