Android facebook applicationId cannot be an empty error despite app_id being correct

I know this question has been asked before, but my problem is that I installed the Manifest and Strings files correctly:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hellofb" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <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" > <activity android:name="com.hellofb.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> <meta-data android:name="com.hellofb.ApplicationId" android:value="@string/app_id" /> <activity android:name="com.hellofb.LoginActivity" /> </application> </manifest> 

(app_id line edited for security)

 <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">Hello FB</string> <string name="action_settings">Settings</string> <string name="hello_world">Hello world!</string> <string name="app_id">18031830547XXXX</string> </resources> 

Any ideas I might be wrong about? Did I accidentally set the wrong path? Any help in the right direction is appreciated.

+6
source share
1 answer

You are doing it wrong. It should look like this:

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

You must not change the name string.

+7
source

Source: https://habr.com/ru/post/949414/


All Articles