Facebook formatting in the config.xml

Just moved over from Phonegap, and trying to get my Apps now working here, so far 2 out of 3 look good, but getting this…

The error I get is

UserError: Failed to restore plugin “cordova-plugin-facebook4”. You might need to try adding it again. Error: CordovaError: Variable(s) missing (use: --variable APP_ID=value --variable APP_NAME=value).

I have

 <gap:plugin name="cordova-plugin-facebook4"  >
 <param variable ="APP_ID" value="***" />
 <param variable ="APP_NAME" value="***" />
 </plugin>

and also done with

 <plugin name="cordova-plugin-facebook4"  >
 <param name="APP_ID" value="***" />
 <param name="APP_NAME" value="***" />
 </plugin>

and

 <gap:plugin name="cordova-plugin-facebook4"  >
 <param name="APP_ID" value="***" />
 <param name="APP_NAME" value="***" />
 </gap:plugin>

to name a few, as well as in different project that I know works OK

*** is my APP_ID and APP_NAME but removed for this email.

Thanks for any help

Try using the variable instead of param:

<plugin name="cordova-plugin-facebook4"  >
 <variable name="APP_ID" value="***" />
 <variable name="APP_NAME" value="***" />
</plugin>

(Also: gap: isn’t needed, since we’re not using PhoneGap)

See the Cordova Docs on plugin.

thanks for your help, yes did that, did not work.

```
<gap:plugin name="cordova-plugin-facebook4"  >
 <param variable ="APP_ID" value="***" />
 <param variable ="APP_NAME" value="***" />
 </plugin>
```

What error message are you getting when you do that?