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:

And my launch app code includes the following:


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

Hey Edward

Do you succeed yet or not ?

Not yet, still looking into it.