Problem with adding Leaderboard

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.facebook.getLeaderboard('my_leaderboard');

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

please any one can help me. Thanks everyone.

This is telling you that this.facebook is undefined.

The most likely reason is the FB plugin is missing.

thanks samme Patron for your response