Android版的Facebook + SDK:"失败,因为应用程序名称不匹配的验证申请表]。 [英] Android + Facebook SDK : "Failed to authenticate the application because of app name mismatch."
问题描述
虽然试图在我的Android应用程序使用Facebook SDK,我得到这个错误:
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."
阅读关于这个问题的许多职位,从其他人得到了同样的问题,并成功地纠正它之后,它仍然是不可能的,我得到Facebook的SDK工作......我想有一些应用程序配置之间错了Facebook和我的Android项目,但我不明白的东西。
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.
这是在Facebook上我的应用程序配置:
This is my application configuration on Facebook :
- 应用程序ID:752068304844308
- 显示名称:TestFSdk
- 命名空间:lbptestfsdk
在Facebook上为Android的配置:
The configuration for Android on Facebook :
- 套餐名称:fr.laposte.testfsdk
- 类名称:fr.laposte.testfsdk.MainActivity
- 键哈希:一个我与主要工具+ OpenSSL的(机器人调试键)获得
- 单点登录:是
- 深层链接:没有
和我的Android项目:
And my Android project :
- Eclipse项目名称:TestFSdk(这很重要?)
- 使用FB SDK活动类:fr.laposte.testfsdk.MainActivity
-
strings.xml中包含:
- Eclipse project name : TestFSdk (is it important ?)
- Activity class using FB SDK : fr.laposte.testfsdk.MainActivity
strings.xml contains :
<string name="app_id">752068304844308</string>
<string name="app_name">TestFSdk</string> --> is it usefull ?
AndroidManifest.xml中:
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>
你看到什么了吗?
感谢您的帮助。
推荐答案
我有一个类似的问题。我使用 SetApplicationName()
在 ShareDialogBuilder 的设置,这是facebook的显示名称不同的名称。他们必须匹配!
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!
这篇关于Android版的Facebook + SDK:&QUOT;失败,因为应用程序名称不匹配的验证申请表]。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!