Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic and FB.AppEvents.activateApp(); issues

I'm failing to implement a Facebook app install campaign. My ionic app initiated the FB JS SDK as described here. In my app init code I include the following:

FB.AppEvents.activateApp();

When I do, I get the following error:

You can only use this function in Facebook Canvas environment

What am I doing wrong?

like image 508
ECostello Avatar asked Jun 11 '16 15:06

ECostello


1 Answers

In the official facebook for developers link, its mentioned as

"Note: App Launches and App Installs are now logged automatically. It's no longer necessary to call activateApp to log those events."

So looks like this call may not be necessary at all.

like image 141
Gandhi Avatar answered Oct 24 '22 12:10

Gandhi