Invalid Facebook ID

FB integration was chugging along nicely until I released a new build into Google Play today.  Nothing has changed in my build settings or in my Facebook app.  The App ID in the error matches the App ID in Facebook. Except for the “!” at the end.  My local hash matches a hash in FB 

settings = { plugins = { ["plugin.firebaseAuth"] = { publisherId = "tech.scotth" }, ["plugin.firebaseDatabase"] = { publisherId = "tech.scotth", }, ["plugin.firebaseInvites"] = { publisherId = "tech.scotth", }, ["plugin.OneSignal"] = { publisherId = "com.onesignal", }, ["plugin.appodeal"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.braintonik-dialog"] = { publisherId = "com.braintonik", }, ["plugin.volumeControl"] = { publisherId = "tech.scotth", supportedPlatforms = { android=true } }, ["plugin.bassBoost"] = { publisherId = "tech.scotth", }, ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" } }, android = { usesPermissions = { "android.permission.INTERNET", "android.permission.GET\_ACCOUNTS", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.WAKE\_LOCK", "android.permission.MODIFY\_AUDIO\_SETTINGS", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "com.android.vending.BILLING" }, useGoogleServicesJson = true, intentFilters = { { actions = { "android.intent.action.VIEW" }, categories ={ "android.intent.category.DEFAULT", "android.intent.category.BROWSABLE", }, data = { scheme = "First Test" }, }, }, googlePlayGamesAppId = "1:377426389920:android:cc6b49a205a38a00", facebookAppId = "127555964556252" }, }

Have you tried to build again?

Can you post your console log with the error in it?

Rob

Yes, I’ve built and deployed to prod twice.

Well, oddly enough, I restarted my phone and it booted into safe mode.  So I restarted again and now my app starts as expected.  I’m not sure if it was something with my phone, the app, or some propagation wait time between Google and FB.

/edit: My bad. Seems like I changed the Google Play Package Name in my facebook dashboard. I corrected that and it works again :slight_smile:


I have exactly the same problem. On Sunday everything worked like a charme. Today I did some design changes, but didnt touch build.settings or other facebook related code-parts at all.

Now, when I build it and open on my Honor8, I get the message

“ERROR: Invalid Facebook App ID”

To develop for Facebook Connect, you need to get a Facebook App ID and integrate it into your Corona project.

XXXX8640920019!"

I am wondering why the exclamation mark is the last character instead of a 7 (as it is in my facebook app dashboard.

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", CFBundleIconFiles = { "Icon-40.png", "Icon-58.png", "Icon-76.png", "Icon-80.png", "Icon-87.png", "Icon-120.png", "Icon-152.png", "Icon-167.png", "Icon-180.png", }, UIApplicationExitsOnSuspend = false, FacebookAppID = "XXXX86409200197", CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXX86409200197", } } }, -- Whitelist Facebook apps LSApplicationQueriesSchemes = { "fb", -- Needed for the facebook-v4.isFacebookAppEnabled() API "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.CAMERA", "android.permission.STORAGE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.READ\_EXTERNAL\_STORAGE" }, facebookAppId = "XXXX86409200197" }, -- -- Plugins section -- plugins = { ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" }, }, }

Have you tried to build again?

Can you post your console log with the error in it?

Rob

Yes, I’ve built and deployed to prod twice.

Well, oddly enough, I restarted my phone and it booted into safe mode.  So I restarted again and now my app starts as expected.  I’m not sure if it was something with my phone, the app, or some propagation wait time between Google and FB.

/edit: My bad. Seems like I changed the Google Play Package Name in my facebook dashboard. I corrected that and it works again :slight_smile:


I have exactly the same problem. On Sunday everything worked like a charme. Today I did some design changes, but didnt touch build.settings or other facebook related code-parts at all.

Now, when I build it and open on my Honor8, I get the message

“ERROR: Invalid Facebook App ID”

To develop for Facebook Connect, you need to get a Facebook App ID and integrate it into your Corona project.

XXXX8640920019!"

I am wondering why the exclamation mark is the last character instead of a 7 (as it is in my facebook app dashboard.

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "portrait", supported = { "portrait", }, }, excludeFiles = { -- Include only the necessary icon files on each platform iphone = { "Icon-\*dpi.png", }, android = { "Icon.png", "Icon-Small-\*.png", "Icon\*@2x.png", }, }, -- -- iOS Section -- iphone = { plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", CFBundleIconFiles = { "Icon-40.png", "Icon-58.png", "Icon-76.png", "Icon-80.png", "Icon-87.png", "Icon-120.png", "Icon-152.png", "Icon-167.png", "Icon-180.png", }, UIApplicationExitsOnSuspend = false, FacebookAppID = "XXXX86409200197", CFBundleURLTypes = { { CFBundleURLSchemes = { "fbXXXX86409200197", } } }, -- Whitelist Facebook apps LSApplicationQueriesSchemes = { "fb", -- Needed for the facebook-v4.isFacebookAppEnabled() API "fbapi", "fbauth2", "fb-messenger-api", "fbshareextension" }, }, }, -- -- Android Section -- android = { usesPermissions = { "android.permission.INTERNET", "android.permission.CAMERA", "android.permission.STORAGE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.READ\_EXTERNAL\_STORAGE" }, facebookAppId = "XXXX86409200197" }, -- -- Plugins section -- plugins = { ["plugin.facebook.v4a"] = { publisherId = "com.coronalabs" }, }, }