Phaser API Documentation

  Version: 
getPlayerPhotoURL()

Description:

Returns the url to the player's public profile photo. The photo will always be a square, and with dimensions of at least 200x200. When rendering it in the game, the exact dimensions should never be assumed to be constant. It's recommended to always scale the image to a desired size before rendering. It is only populated if playerGetPhoto is in the list of supported APIs.

Returns:
Description:

The player's photo url.

Type:
  • string
Examples:
Since: 3.13.0