# Extension

### 說明

Extension 為 Messenger 平台上提供的進階功能。

當按鈕連結設定為 **網址** 時，可選擇開啟擴充視窗功能（Extension）。則當顧客點選此按鈕後，*網頁* 將直接顯示於同視窗彈出的 **擴充視窗**，不會另開新視窗或分頁。

{% hint style="success" %}
使用 Extension 功能，則連結的網頁僅需開發*手機版網頁*，不需額外開發*桌上型電腦版*。
{% endhint %}

![](/files/-LcFvGs07SXqmbRkgWZf)

![](/files/-LcTi9Spl6rrd4me_5Bf)

{% hint style="info" %}
目標網頁須符合 Messenger Extension SDK 設定，才可成功開啟擴充視窗。
{% endhint %}

詳細 Messenger 官方介紹，請參考此 [連結](https://developers.facebook.com/docs/messenger-platform/guides/chat-extensions) 。


---

# 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-tw.yoctol.ai/settings/extension.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.
