Skip to content

Republishing to Facebook

1. Preparing to test

For the test we use:

  • the demo server at;
  • the Two Way Streaming web application to publish streams;
  • the Chrome browser and the REST client to send REST queries.

2. Create live stream on Facebook

Create live stream on Facebook. Check the Enable persistent stream key option. Copy the URL of the server and the stream key from the Facebook page:

3. WCS configuration

Add the following parameters to


Restart WCS.

4. Start a broadcast from a web camera to the WCS server

Open the Two-way Streaming app. Click the Connect button, then specify the stream key from Facebook under the Local window, and click Publish:

5. Start stream republishing to Facebook via REST API

Open the REST client. Send the /push/startup query to the WCS server, and specify the stream key in the streamName parameter and the Facebook server URL in rtmpUrl:


Since November 1st, 2019, the Real-time Messaging Protocol (RTMP) is deprecated on the Facebook services. RTMPS (RTMP over a TLS/SSL connection) is now supported. Use RTMPS URL: rtmps://

6. Checking if Facebook receives the stream

Open the Facebook page where the live invitation is located. Enter the live stream editing page: