ERROR : Invalid Facebook App ID

Thanks for this. I’m seeing if we can determine anything from those two builds.

Rob

This problem occurred today.

Dec 02 08:16:57.330 BuildID: 5c03beb98f31d

There was no problem if building again.

I wish for a stable build.

Is there a fix for this problem?

Unfortunately, we’ve been unable to find the cause.

Rob

Hello Rob, Hello comunity!

Same problem here with facebook v4a : 

Build: 2018.3443
BuildID: 5c0e4fac4c46d

a native popup with : “Error Invalid Facebook App ID” when the app launch.

sometimes 

 

It’s totally random. After building the application, either it works or it does not work by displaying the popup.
I also notice that the message of the popup mentions an ID number which is the good one except that the last character is replaced by a “!”
So, it seem’s that it’s during the server build that a problem is created with the app ID Facebook. Can you dig a little the problem Rob because it’s a little annoying to have to builder 20 times before having a build that works? Thank you so much.

Have a nice day!

Hello Rob, same problem… here with facebook v4a : 

native popup with : “Error Invalid Facebook App ID” when the app launch.

Build: 2018.3443

---- For more information on build.settings see the Corona SDK Build Guide at: -- http://docs.coronalabs.com/guide/distribution/buildSettings/index.html -- settings = { splashScreen =     {         enable = false     },      plugins =     {         ["plugin.google.iap.v3"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { android=true }         }, ["plugin.google.play.services"] =         {             publisherId = "com.coronalabs"         }, ["plugin.facebook.v4a"] =         {             publisherId = "com.coronalabs"         },         ["plugin.notifications"] =         {             publisherId = "com.coronalabs"         }, ["CoronaProvider.native.popup.activity"] =         {             publisherId = "com.coronalabs",             supportedPlatforms = { iphone=true, },         }, ["CoronaProvider.native.popup.social"] =         {             publisherId = "com.coronalabs"         },       ["plugin.facebookAnalytics"] =         {             publisherId = "tech.scotth",             supportedPlatforms = { iphone=true, android=true, ["android-kindle"]=true }         },     }, 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 = { xcassets = "Images.xcassets", plist = {       NSCalendarsUsageDescription = "Testing",       NSPhotoLibraryUsageDescription = "Testing",       NSCameraUsageDescription = "Testing", CoronaWindowMovesWhenKeyboardAppears=true, NSAppTransportSecurity = { NSExceptionDomains = { ["facebook.com"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionRequiresForwardSecrecy = false, }, ["fbcdn.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionRequiresForwardSecrecy = false, }, ["akamaihd.net"] = { NSIncludesSubdomains = true, NSThirdPartyExceptionRequiresForwardSecrecy = false, }, } }, LSApplicationQueriesSchemes = { "fb",  -- Needed for the facebook-v4a.isFacebookAppEnabled() API "fb926777300692669", "fbapi", "fbapi20130214", "fbapi20130410", "fbapi20130702", "fbapi20131010", "fbapi20131219", "fbapi20140410", "fbapi20140116", "fbapi20150313", "fbapi20150629", "fbauth", "fbauth2", "fb-messenger-api20140430", "fb-messenger-api",     "fbshareextension",     "fb-messenger-platform-20150128",     "fb-messenger-platform-20150218",     "fb-messenger-platform-20150305", "fbshareextension" }, NSLocationAlwaysUsageDescription = "This app would like to use location services.", NSLocationWhenInUseUsageDescription = "This app uses maps.", UIStatusBarHidden = false, UIPrerenderedIcon = true, -- set to false for "shine" overlay UIApplicationExitsOnSuspend = false, FacebookAppID = "926777300692669",  --replace XXXXXXXXXX with your Facebook App ID -- iOS app URL schemes: CFBundleURLTypes = { { CFBundleURLSchemes = { "fb926777300692669", } } }, UIAppFonts = { "Caviar Dreams.ttf", "Kavoon.otf", "Lato-Bold.ttf", "Lato\_Regular.ttf", "OpenSans-CondLight.ttf" }, NSAppTransportSecurity = { NSExceptionDomains = { ["facebook.com"] = { NSIncludesSubdomains = true, NSTemporaryExceptionAllowsInsecureHTTPLoads = true, NSTemporaryExceptionMinimumTLSVersion = "1.0", NSTemporaryExceptionRequiresForwardSecrecy = false }, ["petvaletapp.com"] = { NSIncludesSubdomains = true, NSTemporaryExceptionAllowsInsecureHTTPLoads = true, NSTemporaryExceptionMinimumTLSVersion = "1.0", NSTemporaryExceptionRequiresForwardSecrecy = false }, ["graph.facebook.com"] = { NSIncludesSubdomains = true, NSTemporaryExceptionAllowsInsecureHTTPLoads = true, NSTemporaryExceptionMinimumTLSVersion = "1.0", NSTemporaryExceptionRequiresForwardSecrecy = false }, ["fbcdn-profile-a.akamaihd.net"] = { NSIncludesSubdomains = true, NSTemporaryExceptionAllowsInsecureHTTPLoads = true, NSTemporaryExceptionMinimumTLSVersion = "1.0", NSTemporaryExceptionRequiresForwardSecrecy = false }, ["google-analytics.com"] = { NSIncludesSubdomains = true, NSTemporaryExceptionAllowsInsecureHTTPLoads = true, NSTemporaryExceptionMinimumTLSVersion = "1.0", NSTemporaryExceptionRequiresForwardSecrecy = false } } }, -- Launch image files table             UILaunchImages = {                 {  -- iPhone 4 Portrait                     ["UILaunchImageMinimumOSVersion"] = "7.0",                     ["UILaunchImageName"] = "Default",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{320, 480}"                 },                 {  -- iPhone 5 Portrait                     ["UILaunchImageMinimumOSVersion"] = "7.0",                     ["UILaunchImageName"] = "Default-568h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{320, 568}"                 },                 {  -- iPhone 6 Portrait                     ["UILaunchImageMinimumOSVersion"] = "8.0",                     ["UILaunchImageName"] = "Default-667h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{375, 667}"                 },                 {  -- iPhone 6 Plus Portrait                     ["UILaunchImageMinimumOSVersion"] = "8.0",                     ["UILaunchImageName"] = "Default-736h",                     ["UILaunchImageOrientation"] = "Portrait",                     ["UILaunchImageSize"] = "{414, 736}"                 },             }, } }, -- -- Android Section -- android = { coronaWindowMovesWhenKeyboardAppears = true, facebookAppId = "926777300692669",  -- Replace XXXXXXXXXX with your Facebook App ID permissions =         {             { name = ".permission.C2D\_MESSAGE", protectionLevel = "signature" },         }, usesPermissions = { "android.permission.INTERNET",             "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.GET\_ACCOUNTS",             "android.permission.RECEIVE\_BOOT\_COMPLETED",             "com.google.android.c2dm.permission.RECEIVE",             ".permission.C2D\_MESSAGE",             "android.permission.VIBRATE", }, usesFeatures =         {             -- If you set permissions "ACCESS\_FINE\_LOCATION" and "ACCESS\_COARSE\_LOCATION" above,             -- you may want to set up your app to not require location services as follows.             -- Otherwise, devices that do not have location sevices (such as a GPS) will be unable             -- to purchase this app in the app store.             { name = "android.hardware.location", required = false },             { name = "android.hardware.location.gps", required = false },             { name = "android.hardware.location.network", required = false }         }, }, }

Hi  Rob !

We may release a problematic APK.

I have once released it without confirmation and have experienced uninstalled to many users.

It is undesirable to have different results each time an application is built.

Please fix the cause of this problem as soon as possible.

The problem is with the build servers… They know this as I reported it 2 months ago and this is a known problem.

Seemingly one instance is at fault which is why it is random.  It is NOT your fault… it is a Corona build issue that they need to fix.

Hello Rob,
 

Any news about fixing this problem with the build servers?

We have no power over the resolution of the problem, so the ball is in your court.

Thank you in advance for keeping us informed.

GBF Communication
 

We are still looking into it. This is a pesky problem that’s pretty well hidden. If you try again, it may build. I know it’s annoying to try over and over.

But you could also switch to native builds. This gets our build servers out of the way. You don’t need to use any native code, but you would need to use Xcode/Android Studio to do the builds.

Rob

Is this problem still solved?

This problem seems to be getting worse recently.

So we have to build many times.

We have not had any luck finding the root cause of this issue. It might be worthwhile, trying to do a native build, so our build servers are not in play. You don’t have to know any native programming, just copy the default App project to a folder specific for your build. Copy your Corona folder into the folder named “Corona” inside of App and then use Xcode and/or Android Studio to build your app. There is a little more work to download the plugins and get them into your project correctly, but once it’s set up it should work without issue.

Rob

Thank you Rob. I think I will try it. Is there a detailed document on how to do that?

Not really. Most of the “iphone” section of build.settings would go into the Xcode manage Info.Plist and you would just have to set up the various key-value pairs, but Xcode helps you do that. For the Android things, you would edit the Manfiest.xml file and put the various key-value pairs in there.

You would have to set up the various identifiers (package id for android bundle id, provisioning profile, etc. for iOS) in the various tools. Both have ways to build the app. Android is pretty straightforward, under Xcode you have to make an Archive. In both cases, all of those steps are not Corona specific, so there should be plenty of tutorials online that you can find with an internet search.

Rob

Maybe just me but I really don’t think “do native builds” is an answer to why sim builds are failing.  Surely you need to fix the sim builds?

Sim builds are what make Corona a viable product.

I reported this months ago.  Maybe time to refresh the AWS clusters?

Hello,

I totally agree with SGS.

Allow me an analogy.

If you sell a bike telling us that it can go faster in traffic jams, and finally you recognize that it can not work because of a design flaw … I think that telling us that the solution is to put it in the trunk of our car to make the travel is not a possible solution.

With a recent build we already have to remove features from our applications because of incompatibilities between plugins. It starts to make a lot of problems, … unresolved. The use of Corona becomes more and more complicated.

I think that there are probably several build servers, and some of them have problems.

A few months ago, due to this problem I made the number of uninstalls of my application severely large.

We also received reports that advertisements of Appodeal are often not played properly.

The recent instability of Corona greatly impairs the profitability of my application.

I have also paid for the Corona Splash Screen plugin.

I am also paying a few percent of Advertising revenue for Appodeal.

I hope.

Corona should prepare a document on how to build an easy-to-follow build server, or want to resolve this problem as soon as possible.

The problem of each plug-in is also so, but the final build problem is fatal.

We have multiple build servers, so the first thing we thought is that one server was different than another, but we have confirmed that a build ID that failed on server X also built successfully for the same user on the same server X. This has us scratching our head and we continue to research the issue. Perhaps at some point, there will be an “Ah ha!” moment and we can solve this.

I want this problem solved as much as you do, but given our difficulty finding this, I’m simply presenting you an alternative and very functional way for this to not be a problem for you. And frankly, since it seems this is only happening on Android builds and not iOS builds, you would only need to do native builds on Android and still use the simulator for iOS builds.

Corona developer @agramonte put together a very nice video explaining how to build your Corona app using Android Studio: https://forums.coronalabs.com/topic/74578-integrate-android-studio-whith-corona-sdk/

Rob 

This build bug is still happening with Corona Version 2019.3467 (2019.2.26)

:(  :angry:  :wacko:

Perhaps changing the error dialog to something better (that didn’t fully stop the app from functioning) would be an interim step, if you can’t find the cause of the problem

To repeat what somebody mentioned earlier: I also notice that the message of the popup mentions an ID number which is the good one except that the last character is replaced by a “!”

Does this dialog list the FB app ID it’s trying to use? If so, the last character is getting replaced by a “!”. perhaps this is a useful clue to help your bug hunters