I tried to get a sample project up on facebook today and found tons of problems…
Is there any plan to have a step by step tutorial and show the tricks to override the playcanvas
loading bar with the facebook one and how to talk to their API (like creating a highscore table etc.)
Is anybody out there who recently released a game on facebook?
Hi Leonidas, thanks for the reply - you can be sure I checked the tutorial and every related post on the forum. Unfortunately that tutorial has nothing to do with the facebook console as it is today. And there about 5 related post how to modify the playcanvas files to finally get it running…
It’s more a question to Will and the other cool guys if there would be a possibilty to make a ‘Export for FB Instant Games’ in the Pro Version I am paying for each month
It’s hard, as Luis_Mb said to have no really working workflow…
Hi Yohami,
no current problems, I just was overdosed by the new facebook implementation and need to be sure I’ll get everything running if the possible client really orders the game… and I am not such kind of hardcore html guy to edit all the loader scripts - coming from the Unity 3D area
After digging for examples or instructions on how to make a Facebook Instant Game with Playcanvas, I found this link and it’s from this year (Yaay !!) and I thought this time I was finally going to find out how it works but just like every other post in the forum, it ends with a Hitchcock (found another that ended with a helpful forum member solving the problem for OP… by direct message… FML).
Would anyone be kind enough to post some instructions or even better a public example project ?
EDIT: @Yohami_Zerpa, I would love to know where to put the JS given by FB to load the SDK, how to add the <script> tag to load instant game sdk from the cdn and most of all, where to put the setScore() call
@yaustar So I put the Instant Games SDK as external script and I can expect the FBInstant global variable to be available in my game scripts ? Like if I want to call FBInstant.game.setScore(), I just to it in my game script that handles the Game Over event ?
@GrosJack You can put it as external script, but you will not be able to access FBInstant outside of facebook servers. The SDK works only in their environment, so you would need to upload your app to Facebook first. You can set up a localhost server that is self signed and configured to connect to Facebook. They have a guide on their docs how to do it. Then you dont need to upload to their servers, but instead you can run your app on a local server. Running the app from the Playcanvas Editor by pressing Launch will not be possible.