# Setting up a Persistent Key

1\. Visit <https://www.facebook.com/live/producer> or create a new Facebook post and choose **Live Video**, as shown in the image below.&#x20;

<figure><img src="https://1309786211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AkvlBRQSYs9K8SrUhNg%2Fuploads%2FgCLeIZfF39pmRO22zH0C%2Ffblive-createlivevideopost.png?alt=media&#x26;token=dbfa3d77-144b-4631-a494-94a966e48233" alt=""><figcaption></figcaption></figure>

2\. Scroll below the black preview screen and select **Use Stream Key,** and then check the box next to **Use a Persistent Stream Key**, as shown in the image below.

<figure><img src="https://1309786211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AkvlBRQSYs9K8SrUhNg%2Fuploads%2FedLFv7S5fuKPWuBHQk1L%2Ffblive-usestreamkey-persistentbox.png?alt=media&#x26;token=1a39b528-ef79-4121-8353-acb0c561e2a6" alt=""><figcaption></figcaption></figure>

4\. Find the 'Live API' section and copy the **Server URL** and **Stream Key** from Facebook into your CWM settings. In CWM, navigate to the 'Stream Settings' page and look for the Facebook Live section and paste both the Server URL and Stream Key into the appropriate fields.  Please Save Changes.&#x20;

<figure><img src="https://1309786211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7AkvlBRQSYs9K8SrUhNg%2Fuploads%2FYpDReYxz2uzYsaW1rB7m%2Ffblive-liveapi-section.png?alt=media&#x26;token=ab941654-cbe4-4398-9728-9bb342277528" alt=""><figcaption></figcaption></figure>

Now that you've set up your persistent key going live on Facebook is easy.


---

# 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.christianworldmedia.com/documentation-and-guides/stream-sharing/facebook-live/setting-up-a-persistent-key.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.
