Sending events to the Facebook Ads Manager

I’m trying to figure out how to send the Facebook Ads Manager a notification when my Android app is installed.

Is that something the Corona Facebook plugin can do, or do I have to somehow incorporate the Facebook SDK into my Corona app?

Thanks

Look at the facebook.publishInstall() API https://docs.coronalabs.com/plugin/facebook-v4/publishInstall.html

Rob

Thanks,

Is there any sample code for this?

The steps seem to be:

  1. Register as a Facebook developer

  2. Get a unique Facebook id for my app

  3. Include the Corona Facebook plugin in my build.settings

  4. Include my Facebook app id in build.settings

  5. Require the Corona Facebook plugin in my code

  6. Call facebook.publishInstall() near the top of my code

The Facebook V4 plugin page ( should have all the code parts you need to setup build.settings and require Facebook into your app. After that it’s just the one line of code you have in step 6.

As far as getting setup on the Facebook developer portal you will need to follow their documentation and then supplement that with our Facebook guides:

https://docs.coronalabs.com/guide/social/setupFacebook/index.html

https://docs.coronalabs.com/guide/social/usingFacebook/index.html

Rob

Look at the facebook.publishInstall() API https://docs.coronalabs.com/plugin/facebook-v4/publishInstall.html

Rob

Thanks,

Is there any sample code for this?

The steps seem to be:

  1. Register as a Facebook developer

  2. Get a unique Facebook id for my app

  3. Include the Corona Facebook plugin in my build.settings

  4. Include my Facebook app id in build.settings

  5. Require the Corona Facebook plugin in my code

  6. Call facebook.publishInstall() near the top of my code

The Facebook V4 plugin page ( should have all the code parts you need to setup build.settings and require Facebook into your app. After that it’s just the one line of code you have in step 6.

As far as getting setup on the Facebook developer portal you will need to follow their documentation and then supplement that with our Facebook guides:

https://docs.coronalabs.com/guide/social/setupFacebook/index.html

https://docs.coronalabs.com/guide/social/usingFacebook/index.html

Rob