App Events

App Events Best Practices for Casino Gaming App

Updated: Jun 30, 2026
This guide is intended to be used as a starting point for your app and should be customized. The example app provides a screen by screen breakdown of the different events and parameters that can be collected. At the end of it, there is a table that lists the recommended events and parameters for your app.

Casino Gaming App Product and Marketing Objectives

  • Understand the most popular items being purchased in-app as well as hardest levels to complete
  • Retarget users that never completed the tutorial and have not played a game
  • Find new users using lookalikes of high value or frequent purchasers

Example Casino Game App

ActivatedApp Event

Casino Royale game home screen showing App Launch, the event logged when a user opens the app
ActivatedApp Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
- (void)applicationDidBecomeActive:(UIApplication *)application {
    [FBSDKAppEvents activateApp];
}

CompletedRegistration Event

Facebook login permission dialog for Completed Registration, logging the Registration Method parameter
CompletedRegistration Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logCompletedRegistrationEvent :(NSString*)registrationMethod {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        registrationMethod, FBSDKAppEventParameterNameRegistrationMethod,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameCompletedRegistration
        parameters: params];
}

AchievedLevel Event

Level Completed popups in poker and blackjack for Level Achieved, logging Content Type and Level Number
AchievedLevel Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logAchievedLevelEvent :(NSString*)level {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        level, FBSDKAppEventParameterNameLevel,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameAchievedLevel
        parameters: params];
}

UnlockedAchievement Event

Award Received popup for Achievement Unlocked, logging Achievement Type, Achievement ID, and Description
UnlockedAchievement Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logUnlockedAchievementEvent :(NSString*)description {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        description, FBSDKAppEventParameterNameDescription,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameUnlockedAchievement
        parameters: params];
}

InitiatedCheckout Event

Store chip purchase confirmation dialog for Initiated Checkout, logging Content Type, Content ID, Currency, and Value
InitiatedCheckout Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logInitiatedCheckoutEvent :(NSString*)contentId
    contentType :(NSString*)contentType
    numItems :(int)numItems
    paymentInfoAvailable :(BOOL)paymentInfoAvailable
    currency :(NSString*)currency
    valToSum :(double)totalPrice {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        contentId, FBSDKAppEventParameterNameContentID,
        contentType, FBSDKAppEventParameterNameContentType,
        [NSNumber numberWithInt:numItems], FBSDKAppEventParameterNameNumItems,
        [NSNumber numberWithInt:paymentInfoAvailable ? 1 : 0], FBSDKAppEventParameterNamePaymentInfoAvailable,
        currency, FBSDKAppEventParameterNameCurrency,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameInitiatedCheckout
        valueToSum: totalPrice
        parameters: params];
}

Purchased Event

Store Thank You purchase success dialog for Purchase, logging Content Type, Content ID, Value, and Currency
Purchased Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logPurchasedEvent :(int)numItems
    contentType :(NSString*)contentType
    contentId :(NSString*)contentId
    currency :(NSString*)currency
    valToSum :(double)price {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        [NSNumber numberWithInt:numItems], FBSDKAppEventParameterNameNumItems,
        contentType, FBSDKAppEventParameterNameContentType,
        contentId, FBSDKAppEventParameterNameContentID,
        currency, FBSDKAppEventParameterNameCurrency,
        nil];

    [FBSDKAppEvents logPurchase:price
          currency: currency
        parameters: params];
}

PurchaseCancelled Event

Store Purchase Failed dialog for Purchase Cancelled, logging Content Type, Content ID, Value, and Currency

Invite Event

Invite Friends screen with selectable suggested friends for the Invite event, logging Number Invited

Request Event

Daily Lottery Ask Friends screen for the Request event, prompting users to ask friends for help
Event Name Predefined Suggested Parameters
App Install
Yes
Launched App
Yes
Completed Registration
Yes
Registration Method
Achieved Level
Yes
Content Type, Level Number
Unlocked Achievement
Yes
Achievement Type, Achievement ID, Description
Initiated Checkout
Yes
Content Type, Content ID, Currency, valueToSum
Purchased
Yes
Content Type, Content ID, Currency, valueToSum
Purchase Cancelled
No
Content Type, Content ID, Currency, valueToSum
Invite
No
Number Invited
Request
No