# Mention in Post

Mentions allow users to tag other users in posts. It's a powerful tool for fostering engagement and collaboration within your social application. With mentions, users can easily notify specific individuals or groups to new content or important updates. In the SDK, mentions can be implemented in a range of ways, depending on your application's needs and user experience. For more information about mentions, please refer to [Mentions](/social-plus-sdk/core-concepts/mentions.md).

## **Create Post with Mentions**

You can easily mention users when creating a post by including their user IDs in the mention user parameter as well as defining metadata for mention rendering. For further explanation, please refer to [Mentions](/social-plus-sdk/core-concepts/mentions.md#mention-users).

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/03740021d647aca24f70c72617453f8d>" %}

{% embed url="<https://gist.github.com/amythee/61785ed32e114b23c72df4956ef6ac87>" %}
{% endtab %}

{% tab title="Android" %}
{% embed url="<https://gist.github.com/amythee/7e1c0dfaca875293ed4d0cef675a5f21#file-amityposttextcreationwithmention-kt>" %}
{% endtab %}

{% tab title="JavaScript" %}
{% embed url="<https://gist.github.com/amythee/c59e7f12681cfd3c6c376266ce74fbb1#file-createtextpost-js>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/4743d673e1b7989d42398ed9c7829b44#file-creatementionpost-ts>" %}
{% endtab %}

{% tab title="Flutter" %}
{% embed url="<https://gist.github.com/amythee/859934e8745bc50d05e4946aa8b36064>" %}
{% endtab %}
{% endtabs %}

{% hint style="info" %}
In this example, we show a text post with mention. However the pattern of adding mention to a post; is the same for all post types. You can apply the same creation process to the desired post type.
{% endhint %}

## **Update Post with Mentions**

We provide developers with an efficient method for updating posts with mentions of specific users, you can easily add mentions to their post updates and but it will not notify the relevant users.&#x20;

To remove mentions you can provide an empty JSON object for the metadata parameter, and an empty list for the mention users parameter. By doing so, You can easily remove mentions from the post content, while ensuring that the overall structure of the post remains intact.

{% tabs %}
{% tab title="iOS" %}
{% embed url="<https://gist.github.com/amythee/3d3e77b061bda67009cfcd64e65e5c25>" %}

{% embed url="<https://gist.github.com/amythee/f2a7a733fe13cd5e54bb229a9e2cb5c2>" %}
{% endtab %}

{% tab title="Android" %}
When updating a text or video post with mentions, you can provide the `JsonObject` for the `metadata` parameter and provide the list of `userId` for the `mentionUsers` parameter.

{% embed url="<https://gist.github.com/amythee/44b6de55e72f3c8fe0d66157854443fd#file-amityposttextmentionremoval-kt>" %}
{% endtab %}

{% tab title="TypeScript" %}
{% embed url="<https://gist.github.com/amythee/c1edab83de93de27c7381e72a741bdf4#file-updatementionpost-ts>" %}
{% endtab %}

{% tab title="Flutter" %}
{% embed url="<https://gist.github.com/amythee/5e1cc562ec788a51117a7fc4f04ea14d/>" %}
{% endtab %}
{% endtabs %}

## Render Mentions

To render mentions in a supported feature, please refer to [Mentions](/social-plus-sdk/core-concepts/mentions.md#render-mentions), specifically the section on handling mentions. This documentation provides detailed information on how to represent mentions in your application, including information on metadata structure, custom mention objects, and rendering support.


---

# 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/posts/mention-in-post.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.
