Phaser API Documentation

  Version: 
getLeaderboard(name)

Description:

Fetch a specific leaderboard belonging to this Instant Game.

The data is requested in an async call, so the result isn't available immediately.

When the call completes the getleaderboard event will be emitted along with a Leaderboard object instance.

Parameters:

name type description
name string

The name of the leaderboard. Each leaderboard for an Instant Game must have its own distinct name.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Examples:
Since: 3.13.0