# Facebook Instant Games

Games built with Hology Engine an be packed as a static web application and be distributed easily on platforms like Facebook Instant games.

## **Step by step**

### **Step 1: Prepare Your Game**

Before you can upload your game to Facebook Instant Games, you need to package it up in a .ZIP file.

First, build your project with the following command in your project's directory.

```
npm run build
```

This should have created a folder called **dist**. Compress the **dist** directory into a .ZIP file.

### Step 2: Set Up a Facebook Developer Account

1. **Join the Facebook Developer Program:**
   * Visit the Facebook for Developers website (<https://developers.facebook.com/>) and sign up for a developer account.
2. **Create a New App:**
   * In the Developer Dashboard, create a new app. This app will represent your Instant Game on Facebook.

### Step 3: Customize launching a game on Facebook

1. **Fill in details:**
   * Fill in the basic details for your app, including the display name, description, category, and images.
2. **Upload game:**
   * Go to Web hosting. Click "Upload version". Upload the .zip file you created in step 1.

### Step 3: Review and publish

Go through the rest of the steps as explained in the [official guide ](https://developers.facebook.com/docs/games/build/instant-games)to submit your game for review and publish it.


---

# 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/release/distribution/facebook-instant-games.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.
