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
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:
Register as a Facebook developer
Get a unique Facebook id for my app
Include the Corona Facebook plugin in my build.settings
Include my Facebook app id in build.settings
Require the Corona Facebook plugin in my code
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:
Register as a Facebook developer
Get a unique Facebook id for my app
Include the Corona Facebook plugin in my build.settings
Include my Facebook app id in build.settings
Require the Corona Facebook plugin in my code
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