> For the complete documentation index, see [llms.txt](https://docs10.xenioo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs10.xenioo.com/basic-concepts/publishing/channels/facebook/facebook-variables.md).

# Facebook Variables

The following variables are automatically added to your conversation when your chatbot is conversating on this channel:

| Variable                             | Description                                                                                                                                                                                              |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| bot\_channel                         | Set to "FacebookChannel"                                                                                                                                                                                 |
| facebook\_page\_id                   | The full id of the current Facebook page where the chatbot is hosted                                                                                                                                     |
| facebook\_page\_name                 | The name of the current Facebook page where the chatbot is hosted                                                                                                                                        |
| first\_name                          | The first name of the user                                                                                                                                                                               |
| last\_name                           | The last name of the user                                                                                                                                                                                |
| locale                               | The locale of the user in standard four letter ISO code notation (e.g. en-US)                                                                                                                            |
| timezone                             | The timezone of the user based on GMT hours shift. This value is automatically used if [User Timezone](/broadcast/scheduling/basic-settings/untitled.md#time-zone-mode) mode is selected for broadcasts. |
| profile\_pic                         | The user public profile pic url.                                                                                                                                                                         |
| gender                               | The user specified gender                                                                                                                                                                                |
| age\_range\_min                      | The minimum age value of the age range of the user                                                                                                                                                       |
| age\_range\_max                      | The maximum age value of the age range of the user                                                                                                                                                       |
| user\_id                             | The page-scoped id of the user                                                                                                                                                                           |
| subject\_to\_new\_eu\_privacy\_rules | This flag will be true if your Facebook page is subject to Facebook EU regulations. False otherwise.                                                                                                     |

Depending on user specific privacy settings some values may still be empty.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs10.xenioo.com/basic-concepts/publishing/channels/facebook/facebook-variables.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
