> For the complete documentation index, see [llms.txt](https://tailieu.smax.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tailieu.smax.ai/bot-auto/the-chuc-nang/facebook-messenger/messenger-gallery.md).

# Messenger Gallery

{% hint style="info" %}
Thẻ <mark style="color:orange;">**Messenger Gallery**</mark> được sử dụng để gửi danh sách hình ảnh dưới dạng gallery
{% endhint %}

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2F7uF1ss1yi2UrPO9uR1JF%2Fimage.png?alt=media&amp;token=0baf610e-6813-483e-9c76-32b406d6f261" alt="" width="360"><figcaption><p>Hiển thị gallery trên Messenger</p></figcaption></figure>

Để sử dụng thẻ Messenger Gallery tạo gallery trên Messenger, bạn cần chọn hình ảnh hiển thị trên gallery, xem hướng dẫn cách upload hình ảnh lên SmaxAi hoặc Imgur tại đây

{% content-ref url="/pages/Bp4OuejIFAa8A7fmLhGj" %}
[Messenger Image](/bot-auto/the-chuc-nang/facebook-messenger/messenger-image.md)
{% endcontent-ref %}

Sau đó nhập tiêu đề chính và tiêu đề phụ cho hình ảnh

{% hint style="warning" %}

* Trong thẻ Messenger Gallery tiêu đề chính bắt buộc phải có
* Tiêu đề chính và tiêu đề phụ tối đa 80 ký tự
* Hình ảnh hỗ trợ định dạng jpg, jepg và png
* Dung lượng hình ảnh tối đa 2.5mb
  {% endhint %}

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FyT9Yz2bWxpMPKWdSsUH3%2Fimage%201.png?alt=media&amp;token=24732bf3-9723-4c40-8afe-6fdc5b58e312" alt=""><figcaption></figcaption></figure>

Hình ảnh trên thẻ Messenger Gallery hỗ trợ 2 kích thước:

* Ảnh vuông tỉ lệ 1:1
* Ảnh chữ nhật nằm ngang

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FYsRIZq6yQIYX73BwmajN%2Fimage%201.png?alt=media&amp;token=f2090ced-0533-4eac-92c6-5a587dab323a" alt=""><figcaption></figcaption></figure>

Tùy chọn <mark style="color:orange;">**Liên kết**</mark> sẽ mở ra đường dẫn khi khách hàng nhấn vào hình ảnh trên gallery, bạn có thể bỏ trống trường này nếu không sử dụng

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FAnbAZyBrTOjv7g7nqHWx%2Fimage%201.png?alt=media&amp;token=8a4230c1-03bd-4e59-8a6e-b7bb04848cc4" alt=""><figcaption></figcaption></figure>

Bạn có thể thêm nút bấm vào galley bằng cách chọn <mark style="color:orange;">**Thêm nút**</mark>, mỗi hình ảnh trong gallery có thể thêm tối đa 3 nút bấm (tương tự nút bấm của thẻ Messenger Text)

Xem hướng dẫn cài đặt nút bấm tại đây

{% content-ref url="/pages/RVd0grnz7q4nJosgRL4S" %}
[Messenger Text](/bot-auto/the-chuc-nang/facebook-messenger/messenger-text.md)
{% endcontent-ref %}

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2Flizuu3cSvq3fJBES49iG%2Fimage%201.png?alt=media&amp;token=8611b9d5-34d9-4131-94e2-1ee428cb3e43" alt=""><figcaption></figcaption></figure>

Sau khi tạo xong 1 hình ảnh trong gallery, bạn có thể lựa chọn <mark style="color:orange;">**Nhân đôi**</mark> để tạo ra 1 hình ảnh trong gallery giống với hình ảnh vừa tạo

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FNf81orviYDCvgUWDGvgt%2Fimage%201.png?alt=media&amp;token=d635c0ab-1b3c-44ef-8ed6-97d7ca94d58c" alt=""><figcaption></figcaption></figure>

Bạn có thể chọn biểu tượng thùng rác để xóa đi 1 hình ảnh trong gallery

<figure><img src="https://1875681896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsr3EiPwgSuzEXI3u1tC1%2Fuploads%2FClMLKorxlEBQt2IQT2xz%2Fimage%201.png?alt=media&amp;token=9d08a52b-e768-4703-9296-ea67cd6cad8b" alt=""><figcaption></figcaption></figure>
