Cannot set Facebook parameters in config.xml

  • 1
  • Problem
  • Updated 4 years ago
I'm using CLI 5.2.0, gradle as required by
<gap:plugin name="cordova-plugin-google-analytics" source="npm" />
and here is my configuration for the facebook plugin:

<plugin spec="https://github.com/Telerik-Verified-Plugins/Facebook.git#1.0.1.1" source="git">
<param name="APP_ID" value="1234" />
<param name="APP_NAME" value="abcd" />
</plugin>

but PGB tells me

Error - One of your plugins requires a parameter: APP_ID, APP_NAME

I looked at the documentation and it looks like I'm writing it correctly. Any idea? Can it be because of gradle?

https://build.phonegap.com/apps/2061598
Photo of Phone Gapps

Phone Gapps

  • 57 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Phone Gapps

Phone Gapps

  • 57 Posts
  • 0 Reply Likes
If I use

<gap:plugin spec="https://github.com/jeduan/cordova-plugin-facebook4" source="git" >
<param name="APP_ID" value="523493927725811" />
<param name="APP_NAME" value="cinepad_app" />
</gap:plugin>


then it compiles...