Search code examples
node.jshtml5-canvasxmlhttprequestphaser-frameworkfacebook-ads

Facebook playable ads with phaser


I am trying to make Facebook playable ad using Phaser3.60 but the problem is that Facebook block XMLHttpRequest which is used internally in phaser load to load images and sounds. do do any one know a way to images to phaser without using its loader and without using XMLHttpResquest. Error I got when uploading the ad

I tried to use imageLoadType: "HTMLImageElement" but it also gives me the same error, I dont know if facebook detect the XMLHttpRequest in the Phaser.min or in the game code.


Solution

  • I'm not sure if this is the solution for your specific problem, but after some tinkering, I learn abit about facebooks playable ads.

    Disclaimer: First of all, I was not able the get the zip version to run.(not on the preview Tool and not even on a real campain)

    With a single file index.html, with all the data inlined (just under the 2MB limit), I can upload the application and get the same Warning,

    screenshot after upload

    BUT after I click the Application (what executes FbPlayableAd.onCTAClick(), as mentioned in the yellow highlighted part), then the Done Button is activated, and I can deploy the ad.

    screenshot after CTA click

    I hope this helps.