Phaser API Documentation

  Version: 
getPlayers()

Description:

Fetches an array of ConnectedPlayer objects containing information about active players (people who played the game in the last 90 days) that are connected to the current player.

It makes an async call to the API, so the result isn't available immediately.

If they are successfully subscribed this plugin will emit the players event along with the player data.

If they cannot, i.e. it's not in the list of supported APIs, or the request was rejected, it will emit a playersfail event instead.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Examples:
Since: 3.13.0