Difference between revisions of "FBInstant.logEvent"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2018.3<br/> === Description === <br /> Log an app event with FB Analytics. See https://developers.facebook.com/docs/javascript/referen...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2018.3<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2018.3<br/> |
− | <br /> | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/* Initialisation and Core|* Initialisation and Core]]<br/> |
− | 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.<br /> | + | === <translate>Description</translate> === |
− | < | + | <translate><br /> |
− | + | 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.<br /></translate> | |
− | </ | + | <syntaxhighlight lang="lua"> |
− | '''eventName | + | FBInstant.logEvent(eventName,valueToSum,parameters) |
− | '''valueToSum | + | </syntaxhighlight> |
− | '''parameters | + | === <translate>Parameters</translate> === |
+ | '''eventName''': (string) <translate>Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters.</translate> <br/> | ||
+ | '''valueToSum''': (numbere) <translate>An optional numeric value that FB Analytics can calculate a sum with.</translate> '''optional'''<br/> | ||
+ | '''parameters''': (table) <translate>An optional table 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.</translate> '''optional'''<br/> | ||
+ | === <translate>Examples</translate> === | ||
+ | '''Example'''<br/> | ||
+ | <syntaxhighlight lang="lua"> | ||
+ | FBInstant.logEvent("my_custom_event",42,{custom_property="custom_value"}) | ||
+ | <br/></syntaxhighlight> | ||
+ | |||
+ | {{FBInstant}} |
Latest revision as of 14:27, 13 July 2023
Available since: Gideros 2018.3
Class: * Initialisation and Core
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.
FBInstant.logEvent(eventName,valueToSum,parameters)
Parameters
eventName: (string) Name of the event. Must be 2 to 40 characters, and can only contain '_', '-', ' ', and alphanumeric characters.
valueToSum: (numbere) An optional numeric value that FB Analytics can calculate a sum with. optional
parameters: (table) An optional table 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. optional
Examples
Example
FBInstant.logEvent("my_custom_event",42,{custom_property="custom_value"})
<br/>
- FBInstant.canCreateShortcutAsync
- FBInstant.checkCanPlayerMatchAsync
- FBInstant.createShortcutAsync
- FBInstant.getEntryPointAsync
- FBInstant.getEntryPointData
- FBInstant.getInterstitialAdAsync
- FBInstant.getLeaderboardAsync
- FBInstant.getLocale
- FBInstant.getPlatform
- FBInstant.getRewardedVideoAsync
- FBInstant.getSDKVersion
- FBInstant.getSupportedAPIs
- FBInstant.logEvent
- FBInstant.matchPlayerAsync
- FBInstant.onPause
- FBInstant.quit
- FBInstant.setLoadingProgress
- FBInstant.setSessionData
- FBInstant.shareAsync
- FBInstant.startGameAsync
- FBInstant.switchGameAsync
- FBInstant.updateAsync