prajwal.be.21 September 4th, 2014 Hey Guys,
I tried running a WADE game in Facebook Canvas (iFrame) but it does not load. I have set up a hosting account with an SSL certificate. Other games i developed with core javascript runs but not WADE games. Do you need to buy WADE Pro to publish on facebook?
Please help!
Thanks...
foxcode September 4th, 2014 Hi prajwal, I am fairly sure you do not need WADE Pro to publish on Facebook, I have asked my boss about this and will hopefully have a solution for you soon :)
Gio September 4th, 2014 I can confirm that WADE pro isn't needed to publish on Facebook.
I think that the most likely cause of your problems is the fact that WADE makes Ajax requests to load resources, and if your app is in an iframe on a different domain there may be cross-domain issues.
There are ways around it.
What error message(s) do you get in the console exactly?
prajwal.be.21 September 5th, 2014 Hey Gio,
I get the following errors in the console...
aquilagamestudios.com/:1
aquilagamestudios.com/:1
Uncaught ReferenceError: $ is not defined
Gio September 5th, 2014 So that's your problem there :)
If your app is loaded via HTTPS, it cannot load scripts via HTTP. All the requests must be made via HTTPS.
For the jQuery script, just edit your index.html and replace
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
with
<script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
(note the s).
For the other script (from intel.com), I think you will have to download it and copy it locally to your game's folder. Then instead of loading it from http://debug-software.intel.com/target/target-script-min.js just load it from target-script-min.js (so using a relative path).
prajwal.be.21 September 5th, 2014 Hey Gio,
Awesome! It's Working now...
I didn't really need that Intel Xdk script... it was inserted when I tried to build a mobile app with it.
Thanks a lot!!!
PS:
I think WADE is the coolest and the best HTML 5 engine out there. Migrating from Flash, I found it very easy to develop HTML 5 games with WADE.
Thank you guys, keep the good work going :)