For the browser platform, the plugin seems to use a post preparation plugin to populate APP_ID . This is assumed to be specified in config.xml in the root of the project. I'm not sure why - but this was not enough in my error-generating configuration.
Adding this line to config.xml seems to fix the problems
<preference name="APP_ID" value="0123456789"/>
Note: the implementation seems to be based on the built-in replacement of the special APP_ID token in several files (see plugins/cordova-plugin-facebook4/scripts/after_prepare.js ).
In my situation, this was set to zero (presumably the first time it worked without writing above in config.xml ). To solve this problem, I reinstalled the plugin and browser platform.
$ ionic cordova plugin remove cordova-plugin-facebook4 $ ionic cordova platform remove browser $ ionic cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="0123456789" --variable APP_NAME="myApp" $ ionic cordova platform add browser
source share