Jump to content

problem with adding leaderboard

Ripon Ahmed

Recommended Posts

Hello everyone, I am new in phaser 3 game development . I am trying to build a social game for the Facebook Instant Games platform. I create a simple phaser 3 game and now I want to add leaderboard with my game . when add this code my game

this.facebook.on('getleaderboard', function (leaderboard)
            this.leaderboard = leaderboard;

        }, this);

 this error message show the console  Uncaught TypeError: Cannot read property 'on' of undefined

please any one can help me. Thanks everyone.

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...