# 臉書即時遊戲

使用 Hology Engine 構建的遊戲可以打包為靜態網頁應用程序，並可以輕鬆地在臉書即時遊戲(Facebook Instant Games)等平台上發布。

## 步驟說明

### 步驟 1：準備您的遊戲

在將遊戲上傳到臉書即時遊戲之前，您需要將其打包成 .ZIP 文件。

首先，在您項目的目錄中使用以下命令構建您的項目：

```
npm run build
```

這應該會創建一個名為 dist 的文件夾。將 dist 目錄壓縮成 .ZIP 文件。

### 步驟 2：設置臉書開發者帳戶

1. **加入臉書開發者計劃：**
   * 去臉書開發者網站 (<https://developers.facebook.com/>) 並註冊一個開發者帳戶。
2. **創建新應用：**
   * 在開發者儀表板中，創建一個新應用。這個應用將代表您在臉書上的即時遊戲。

### 步驟 3：自定在臉書上啟動遊戲

1. **填寫詳細信息：**
   * 填寫基本遊戲詳細信息，包括名稱、描述、類別和圖片。
2. **上傳遊戲：**
   * 前往網頁託管。點擊"上傳版本"。上傳您在步驟 1 中創建的 .zip 文件。

### 步驟 4：審核和發布

按照官方指南中的解釋，完成其餘步驟以提交您的遊戲進行審核並發布。


---

# 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.hology.app/zh-tw/release/you-xi-fa-xing/lian-shu-ji-shi-you-xi.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.
