Facebook Conversation Tracking
In order to advertise your game on Facebook and Intsagram you need to add the Facebook Conversation Tracking to your game. So facebook is able to get data of your app installations and app launches.
Just install following facebook plugin to your cocoon project. Just use the “Custom” tab and enter the git repo url below.
This will add the Facebook SDK to your Cocoon (Cordova) game.
Now switch to the “Installed” tab and select the currently installed facebook plugin.
Add following two parameters to this plugin.
As value add the APP ID and APP Name from your Facebook App. If you do not know how to create such an app, please see this guide.
This is how it should look like in your config.xml file then.
<plugin name="https://github.com/jeduan/cordova-plugin-facebook4.git" spec="https://github.com/jeduan/cordova-plugin-facebook4.git"> <variable name="APP_ID" value="YOUR ID"/> <variable name="APP_NAME" value="YOUR NAME"/> </plugin>
If you keep getting build errors, try this modificated code.
<plugin name="cordova-plugin-facebook4" source="npm" spec="1.7.4"> <variable name="APP_ID" value="YOUR ID"/> <variable name="APP_NAME" value="YOUR NAME"/> </plugin>
Once you’ve built and uploaded your game you will receive data like shown below.