android - Facebook api 无效的应用 ID

标签 android facebook

我有一些关于 facebook SKD 的问题。我尝试登录时收到无效的应用程序 ID。你能帮我找出问题所在吗?

enter image description here

我的 facebook 应用程序如下所示:

enter image description here

list :

<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>

最佳答案

如果有人遇到这个问题,我通过不将 appId 值直接放在 list 文件中来修复它。相反,你应该把它放在字符串中,然后放在 list 中

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

这很奇怪,但对我有用。

关于android - Facebook api 无效的应用 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30371639/

相关文章:

android - 无法使用oauth登录到Facebook

java - android异步读取usb

android - 这个方法做了什么 super.onCreateOptionMenu() 和 super.onOptionsItemSelected(item)

android - 从 Android 的生产代码中删除日志记录?

image - 如何设置将在 Facebook 上显示为预览的网站图像?

android - 打开新帖子作为意向 - Facebook 移动版

Android Facebook SDK : post message without showing facebook page

ios - 如何设置ios facebook sdk 3.2的用户权限

android - 调整 Android 文本大小

android - 如何在 Android NativeScript 应用程序上更改 TextView 底部强调色