Phaser API Documentation

  Version: 
log(name, [value], [params])

Description:

Log an app event with FB Analytics.

See https://developers.facebook.com/docs/javascript/reference/v2.8#app_events for more details about FB Analytics.

Parameters:

name type arguments description
name string

Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters.

value number <optional>

An optional numeric value that FB Analytics can calculate a sum with.

params object <optional>

An optional object that can contain up to 25 key-value pairs to be logged with the event. Keys must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters. Values must be less than 100 characters in length.

Returns:
Description:

This Facebook Instant Games Plugin instance.

Examples:
Since: 3.13.0