Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Facebook app install campaign, how to?

$
0
0

@eduardvanshufel wrote:

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:

$window.fbAsyncInit = function() {
    FB.init({
        appId: 'MY-APP-CODE',
        status: true,
        cookie: true,
        xfbml: true,
        version: 'v2.6'
    });
    $log.debug("done loading FB SDK");
    FB.AppEvents.activateApp();
    $log.debug("Call FB activate app");
};

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>