# Facebook Pages

Facebook Pages are public profiles designed for businesses, brands, organizations, and public figures to connect with their audience. Unlike personal profiles, Pages allow for content publishing, audience engagement, and advertising, making them essential for marketing and community building. With features like posts, events, insights, and messaging, Facebook Pages help businesses establish an online presence and interact with followers effectively.

### **How to Integrate Facebook Pages with ZBrain Flow** <a href="#how-to-integrate-facebook-pages-with-zbrain-flow" id="how-to-integrate-facebook-pages-with-zbrain-flow"></a>

1. Click the ‘+’ button in ZBrain Flow.
2. Search for Facebook Pages and select the desired action.

### **How to Connect Facebook Pages to ZBrain Flow** <a href="#how-to-connect-facebook-pages-to-zbrain-flow" id="how-to-connect-facebook-pages-to-zbrain-flow"></a>

1. **Enter a Connection Name** – Provide a recognizable name for your connection.
2. **Enter the Secret URL, Client ID, and Client Secret** – These credentials are required to authenticate your Facebook Pages integration.

#### **How to Find Your Redirect URL, Client ID, and Client Secret:** <a href="#how-to-find-your-redirect-url-client-id-and-client-secret" id="how-to-find-your-redirect-url-client-id-and-client-secret"></a>

* **Create or Open Your App:**
  * Visit [Facebook for Developers](https://developers.facebook.com/).
  * Log in and navigate to My Apps to select an existing app or create a new one.
* **Find the Client ID & Client Secret:**
  * Go to Settings > Basic in your app's dashboard.
  * Locate your App ID (Client ID) and App Secret (Client Secret). Click ‘Show’ to reveal the secret key.
* **Obtain the Redirect URL:**
  * Navigate to Facebook Login > Settings in the left sidebar.
  * Add your Valid OAuth Redirect URIs—this is the URL where Facebook will redirect users after authentication.

3. Click ‘Connect’ to authenticate and authorize Facebook Pages.
4. Click ‘Save’ to finalize the connection.

### **Actions Available in ZBrain Flow** <a href="#actions-available-in-zbrain-flow" id="actions-available-in-zbrain-flow"></a>

#### **1. Create Page Post** <a href="#id-1.-create-page-post" id="id-1.-create-page-post"></a>

Publish a text post with an optional link on your Facebook Page.

* Select an existing connection or create a new one.
* Choose the Facebook Page where the post should be published.
* Enter the message content.
* Provide a link (optional).

#### **2. Create Page Photo** <a href="#id-2.-create-page-photo" id="id-2.-create-page-photo"></a>

Upload and post a photo on your Facebook Page.

* Select an existing connection or create a new one.
* Choose the Facebook Page where the photo should be uploaded.
* Provide the photo URL (must be accessible online).
* Input a caption for the photo.

#### **3. Create Page Video** <a href="#id-3.-create-page-video" id="id-3.-create-page-video"></a>

Upload and post a video on your Facebook Page.

* Select an existing connection or create a new one.
* Choose the Facebook Page where the video should be published.
* Provide the video URL (must be accessible online).
  * Limit: Maximum file size of 1GB and video length of 20 minutes.
* Input a title and description for the video.


---

# 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.zbrain.ai/zbrain-documentation/zbrain-builder/flows/flow-components/facebook-pages.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.
