Facebook FB.AppEvents.activateApp(); issues

Still could not implement a Facebook app install campaign.
My ionic app initiated the FB JS sdk as describe here:
https://developers.facebook.com/docs/javascript/howto/angularjs

And my launch app code includes the following:

    FB.AppEvents.activateApp();

I do get the following error:
You can only use this function in Facebook Canvas environment

Any ideas what I’m doing wrong ?

Thank you in advance
Edward

Hey Edward

Do you succeed yet or not ?

Not yet, still looking into it.