Manage user reactions on posts, stories, and comments with querying, adding, and removing functionality
getReactions
method that allows you to retrieve information about a specific reaction or all reactions on a comment, post, or story.
Using this method, you can fetch detailed information about:
Reaction Details
Analytics Benefits
referenceType
parameter determines the type of reference for which reactions are queried. Supported values are:
Reference Type | Description |
---|---|
post | Retrieves reactions for a post |
story | Retrieves reactions for a story |
comment | Retrieves reactions for a comment |
message | Retrieves reactions to a message |
Parameter | Type | Required | Description |
---|---|---|---|
referenceId | String | Yes | ID of the post, comment, story, or message |
referenceType | Enum | Yes | Type of content being queried for reactions |
reactionName | String | No | Filter by specific reaction type (case-sensitive) |
addReaction
function allows users to add a reaction to a post, comment, story, or message. Users can add any number of reactions to a particular piece of content, enabling more nuanced and expressive engagement.
Reaction Naming
Reference Types
Parameter | Type | Required | Description |
---|---|---|---|
reactionName | String | Yes | Name of the reaction (max 100 characters, case-sensitive) |
referenceId | String | Yes | ID of the post, comment, story, or message |
referenceType | Enum | Yes | Type of content receiving the reaction |
removeReaction
function allows users to remove a previously added reaction from a reference. This provides users with greater control over their engagement and allows them to change their minds or update their reactions over time.
Parameter | Type | Required | Description |
---|---|---|---|
reactionName | String | Yes | Name of the reaction to remove (case-sensitive) |
referenceId | String | Yes | ID of the post, comment, story, or message |
referenceType | Enum | Yes | Type of content where the reaction will be removed |
Standard Reactions
Emoji Reactions
Custom Community Reactions
Reaction Design
Performance Optimization
User Experience