---
description: This page provides a form for post creation.
---

# Post Creation Page

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FREQcv1fFSf3ynesK21Md%2FScreenshot%202566-02-22%20at%2007.28.02.png?alt=media&#x26;token=52304d51-c3db-49a2-af1e-f035ce6572e7" alt=""><figcaption><p>The default state of post creation</p></figcaption></figure>

## **Types of Post Creations:**

## Text&#x20;

![example of text post ](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6z1Vx6bJWFIWbFK9N%2F-MX6zRrXGJbMfhwbbZWh%2Fimage%20\(11\)%20\(1\).png?alt=media\&token=0c76dfa5-3228-4fca-9529-938518807498)

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FgZa5WNOrGvMVSHqC0HA8%2FScreenshot%202566-02-22%20at%2007.29.19.png?alt=media&#x26;token=07605bb8-15b9-4bd0-89aa-8df7972dedfb" alt=""><figcaption><p>Mention users in a post</p></figcaption></figure>

![Example of hyperlink generated from URL input ](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6z1Vx6bJWFIWbFK9N%2F-MX6zXQ1yji37bhv_y8u%2Fimage%20\(12\)%20\(1\).png?alt=media\&token=14980415-d8ae-4d60-846e-5a7eaf59185e)

## Text and Images

![](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6z1Vx6bJWFIWbFK9N%2F-MX6zbsHEfgIFRtG4_I8%2Fimage%20\(13\)%20\(1\).png?alt=media\&token=55d29e72-c4d3-4a71-8885-b5da18dd8c47)

#### &#x20;User can select images from 2 sources.&#x20;

### Device Camera

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FWEkj6ggDcxEy2Ozqi9dG%2FScreenshot%202566-02-22%20at%2010.27.18.png?alt=media&#x26;token=f092c081-641a-4375-b9d3-129ddd1474db" alt=""><figcaption><p>System will launch the device camera view</p></figcaption></figure>

### Device Image Gallery

![](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6z1Vx6bJWFIWbFK9N%2F-MX6zmxO1cCCXz4lPsNi%2Fimage%20\(15\)%20\(1\).png?alt=media\&token=07b90bdd-6e8b-4311-bf22-9ee4c248f123)

## Text and Files

![](https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MX0mOAVWkotGme0iRzu%2F-MX6z1Vx6bJWFIWbFK9N%2F-MX6ztUOg48jNAibAkX3%2Fimage%20\(16\)%20\(1\).png?alt=media\&token=e7f2ed76-901f-46b3-8899-4b5edf570cfc)

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F8kHN9QsmaNOZZFFbtQW0%2FScreenshot%202566-02-22%20at%2010.28.53.png?alt=media&#x26;token=a062e45a-09df-4c6a-b6db-15d3f5c9cf60" alt=""><figcaption></figcaption></figure>

## Text and Videos

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F1PAe06iBbjsE5o2JSsWa%2FScreenshot%202566-02-22%20at%2010.30.08.png?alt=media&#x26;token=62f6aed5-6554-46c9-a42a-5e47128388a1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F9xgmrxloFDuql3Ry3MhX%2FScreenshot%202566-02-22%20at%2010.31.14.png?alt=media&#x26;token=5c8030da-9b43-4469-8c0a-2932379b9caf" alt=""><figcaption></figcaption></figure>

## Polls

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2F0NPakQPimz2QyPfE4BLR%2FScreenshot%202566-02-22%20at%2010.32.26.png?alt=media&#x26;token=b6983f2d-25e2-4feb-b07a-de6069e4f833" alt=""><figcaption><p>Poll post</p></figcaption></figure>

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FORhxtB5xSImrzbx99uhy%2FScreenshot%202566-02-22%20at%2010.33.30.png?alt=media&#x26;token=18abb77c-ee22-468d-8cb8-d7a0c39883c2" alt=""><figcaption><p>Mention users in a poll post</p></figcaption></figure>

### Livestream

To create a live stream post and for a detailed discussion on the live stream features, refer to [Livestream post](post-creation-page/livestream-post) documentation.

<figure><img src="https://2352509137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX0mOAVWkotGme0iRzu%2Fuploads%2FFF8bsTPZmNRgwIm91NrL%2FScreenshot%202566-02-22%20at%2010.34.49.png?alt=media&#x26;token=bc76a40b-fa95-4e3b-84d1-67bf8aa2cd23" alt=""><figcaption><p>Mention users in a livestream post</p></figcaption></figure>

## Features&#x20;

| Feature         | Description                                                                                                                                                                                                                                                                            |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Post creation   | User can create post by adding content such as text, images, videos and files.                                                                                                                                                                                                         |
| Mention in post | <p>Mention users in post by typing @ to activate mention suggestion and selecting their names in the suggestion list. Up to 30 users can be mentioned per post.</p><p></p><p>An alert will be shown if character count is greater than 50000 or mentions count is greater than 30.</p> |

## Usage

**Create a Fragment**

&#x20;User can create a post either on a community feed or user's own feed.

**Attachment options**

&#x20;We currently support three types of attachment option when creating a post. These are:

1. `AmityPostAttachmentItem.PHOTO`&#x20;
2. `AmityPostAttachmentItem.VIDEO` &#x20;
3. `AmityPostAttachmentItem.FILE` . &#x20;

You can optionally choose to allow these attachment options by using the method `allowPostAttchments`. By default the fragment includes all attachment options.

**Create a post on community feed**&#x20;

```
//for text, image, file, video post
AmityPostCreatorFragment.newInstance()
    .onCommunityFeed(community or communityId)
     //optional
     .allowPostAttachments(
           listOf(
                   AmityPostAttachmentOptionItem.PHOTO,
                   AmityPostAttachmentOptionItem.VIDEO,
                   AmityPostAttachmentOptionItem.FILE
               )
           )
    .build()
    
//for poll post    
AmityPollPostCreatorFragment.newInstance()
    .onCommunityFeed(community or communityId)
    .build()
```

**Create a post on user's own feed**&#x20;

```
//for text, image, file, video post
AmityPostCreatorFragment.newInstance()
     .onMyFeed()
     //optional
     .allowPostAttachments(
           listOf(
                   AmityPostAttachmentOptionItem.PHOTO,
                   AmityPostAttachmentOptionItem.VIDEO,
                   AmityPostAttachmentOptionItem.FILE
               )
           )
     .build()
   
//for poll post      
AmityPollPostCreatorFragment.newInstance()
     .onMyFeed()
     .build()
```
