API reference
API reference
Select your platform
No SDKs available
No versions available

UserAgeCategory Class

Users are divided into three categories based on their age: -AccountAgeCategory.Ch: Child age group for users between the ages of 10-12 (or applicable age in user's region). -AccountAgeCategory.Tn: Teenage age group for users between the ages of 13-17 (or applicable age in user's region). -AccountAgeCategory.Ad: Adult age group for users ages 18 and up (or applicable age in user's region).

Static Member Functions

Retrieve the user age category for the current user. It can be used in UserAccountAgeCategory::AgeCategory
Report the current user's age category to Meta.
Parameters
age_category
Age category for developers to send to Meta. There are two members, children age group (AppAgeCategory.Ch) and non-children age group (AppAgeCategory.Nch).
Did you find this page helpful?
Thumbs up icon
Thumbs down icon