Skip to content

Republishing to Facebook

1. Preparing to test

For the test we use:

  • the demo server at demo.flashphoner.com;
  • 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 flashphoner.properties:

rtmp_transponder_stream_name_prefix=
rtmp_flash_ver_subscriber=LNX 76.219.189.0
rtmp_transponder_send_metadata=true

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:

Attention

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://live-api-s.facebook.com:443/rtmp/

6. Checking if Facebook receives the stream

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