类型 函数 返回值 事件 修订 2024.3703 版 关键字 Facebook,请求 另请参见 facebook.*
用于记录 Facebook 应用事件。
facebook.logEvent(eventName [,eventParams] [,valueSum])
String. 要记录到应用事件的事件名称。可以为自定义事件或使用以下标准事件:"achievedLevel"
,"adClick"
,"adImpression"
,"addedPaymentInfo"
、"addedToCart"
,"addedToWishlist"
,"completedRegistration"
,"completedTutorial"
、"contact"
,"customizeProduct"
,"donate"
,"findLocation"
、"initiatedCheckout"
,"rated"
,"searched"
,"spentCredits"
、"startTrial"
,"submitApplication"
,"subscribe"
或 "viewedContent"
。有关更多信息,请参见此文档
Table. 作为 FB 应用事件参数传递的键/值对表。可以为键/值或使用标准键:"adType"
,"content"
,"contentID"
,"contentType"
、"currency"
,"description"
,"level"
,"maxRatingValue"
,"numItems"
,"orderID"
,"paymentInfoAvailable"
、"registrationMethod"
,"searchString"
或"success"
。有关更多信息,请参见此文档。
facebook.logEvent( "achievedLevel", { level="Level 1" } )
facebook.logEvent( "spentCredits", { contentID="skin1", contentType="skin", content="solar skin" }, 12 ) -- Total value of credits spent=12