# Facebook Webview Whitelisting

Facebook allows webviews to be shown within the conversation between a bot and its user. These webviews are typically made of small applications that contain logic that is not possible to show within the default Facebook templates – like buttons and carousels.

{% hint style="success" %}
If you add a webview to a Facebook Messenger bot, the domain that hosts this webview has to be whitelisted. But only the domains that you enter as a webview on our platform have to be whitelisted.

Follow Facebook's instructions for whitelisting a domain [here](https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/domain-whitelisting/#page_settings).
{% endhint %}

You can add a webview by adding a button template, and adding a new button with the type `Webview`.

![](/files/-L_gHWaTUKWMs4HklZua)

Fill in this template with the right copy and URL and optional parameters that are passed on to the webview.

![](/files/-L_gH7yrYjeHgIIYJgak)


---

# 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.chatlayer.ai/channels/all-channels/facebook/facebook-webview-whitelisting.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.
