Change the information like titles, image paths, descriptions etc. for your own game.
The .php code above will show this on facebook :
In your game add the Browser object and this event:
Change the number 5000 with your own score, it could be something like : Webstorage.LocalValue("highscore"). Or else it will post 5000 every time.
The random number system is for Facebook cache, if the URL is already used in Facebook it will get the title etc from the cache not your website. That's why we give Facebook a new URL with random numbers every time.
It works with CocoonJS, i used it in my game for a demo check out :
play.google.com/store/apps/details
I hope this tutorial will help you guys, Enjoy!