# Reactions

<figure><img src="/files/rSL225FTCkII8NjvBXP4" alt=""><figcaption></figcaption></figure>

Reactions are the interactions that users can perform on messages, posts, or comments. The interactions can be anything such as like, dislike, love, etc. It's up to the client to determine the type of reactions. The SDK provides convenient functions to add, remove, and query reactions for any content. Currently, reactions are supported for Posts, Messages, and Comments.

### Reaction Reference Type <a href="#create-comment" id="create-comment"></a>

The social.plus SDK provides two reference types for querying reactions: comment reference type and post reference type.

* **Comment Reference Type**: allows users to query reactions made to a specific comment. This is useful when users want to see how others have responded to a particular comment.
* **Post Reference Type:** allows users to query reactions made to a specific post. This is helpful when users want to see how others have engaged with a particular piece of post.
* **Story Reference Type:** allows users to query reactions made to a specific story. This is helpful when users want to see how others have reacted to a particular piece of story.

### Reaction Description

| Name                 | Data Type  | Description                              | Attributes                   |
| -------------------- | ---------- | ---------------------------------------- | ---------------------------- |
| `referenceId`        | `String`   | ID of a document                         |                              |
| `referenceType`      | `String`   | Type of document                         |                              |
| `reactionName`       | `String`   | Name of reaction                         | '`like`', '`love`' , '`wow`' |
| `reactionId`         | `String`   | ID of the reaction                       |                              |
| `reactorId`          | `String`   | ID of the reactor                        |                              |
| `reactorDisplayName` | `String`   | Display name of the reactor              |                              |
| `createdAt`          | `DateTime` | The date/time when a reaction is created |                              |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.social.plus/social-plus-sdk/social/reactions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
