# How to stream to Facebook using RTMPS ?

**URL:** https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api, java
**Created:** [April 25, 2019, 2:32pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244 "2019-04-25T14:32:42Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Roman\_Buta1](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@Roman\_Buta1](https://community.wowza.com/u/Roman_Buta1)
#### Post date: [April 25, 2019, 2:32pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/1 "2019-04-25T14:32:42Z")

</div>

Does PushPublishRTMP support RTMPS? What does PushPublishRTMP.setSSL(true) mean?

If not, is there any other way to send a stream to facebook via RTMPS using Wowza java API?

Will be grateful for any help. Thanks

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [April 27, 2019, 12:14am UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/2 "2019-04-27T00:14:43Z")

</div>

Checking for you @Roman Buta. I know we do support RTMPS with our REST API, but let me check on the java API. Thanks for your patience.

---

<div class="post-metadata">

### Author: ![Mustafa\_Al\_Ani](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@Mustafa\_Al\_Ani](https://community.wowza.com/u/Mustafa_Al_Ani)
#### Post date: [April 27, 2019, 11:26am UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/3 "2019-04-27T11:26:41Z")

</div>

@Rose Power-Wowza Community Manager I want to know how to do it using the REST API please, could you please refer to that article. Thank you.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [April 29, 2019, 2:44pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/5 "2019-04-29T14:44:30Z")

</div>

Sure thing, but I need to first post the solution for the JAVA API for those in the community clicking on this post because is it is tagged for the JAVA API forum:

Here’s the Java API for `setSSL` boolean

[https://www.wowza.com/resources/serverapi/4.7.7/com/wowza/wms/pushpublish/protocol/rtmp/PushPublishRTMP.html#setSSL(boolean)](https://www.wowza.com/resources/serverapi/4.7.7/com/wowza/wms/pushpublish/protocol/rtmp/PushPublishRTMP.html#setSSL%28boolean%29)

```auto
        PushPublishRTMP publisher = new PushPublishRTMP();
        publisher.setSSL(true);

```

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [April 29, 2019, 3:20pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/6 "2019-04-29T15:20:18Z")

</div>

You need to make this change to to send it RTMPS [@Roman Buta](http://community.wowza.com/community/answers/51452/post.html#):

It is also possible to enable the RTMP stream target to send RTMPS content to the destination. Open the [install-dir]/conf/[applicationName]/PushPublishMap.txt file in a text editor, find the entry for the RTMP stream target in the map file, and add “sendSSL”:“true”.

[https://www.wowza.com/docs/how-to-use-rtmp-to-distribute-live-streams#rtmps](https://www.wowza.com/docs/how-to-use-rtmp-to-distribute-live-streams#rtmps)

You don’t need to do anything else different in the REST API call for RTMP once you do the step listed above.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [April 29, 2019, 3:22pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/7 "2019-04-29T15:22:29Z")

</div>

The “set to true” means you are allowing it to be sent over a secure connection.

---

<div class="post-metadata">

### Author: ![Mustafa\_Al\_Ani](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@Mustafa\_Al\_Ani](https://community.wowza.com/u/Mustafa_Al_Ani)
#### Post date: [May 1, 2019, 1:09pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/8 "2019-05-01T13:09:45Z")

</div>

If sendSSL is set to true in the PushPublishMap.txt, does it mean that every RTMP target in this application will be sent over SSL? and that specific application will no more send RTMP to non-ssl receivers?

---

<div class="post-metadata">

### Author: ![Jason\_Tuchler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_tuchler/32/462_2.png) [@Jason\_Tuchler](https://community.wowza.com/u/Jason_Tuchler)
#### Post date: [May 4, 2019, 9:36pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/9 "2019-05-04T21:36:55Z")

</div>

It will added per Map entry and not the full list of PushPublishMap.txt entries.

Regards,

JasonT

---

<div class="post-metadata">

### Author: ![Sebastian\_Gorajek](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sebastian\_Gorajek](https://community.wowza.com/u/Sebastian_Gorajek)
#### Post date: [May 14, 2019, 4:23pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/10 "2019-05-14T16:23:46Z")

</div>

I use Wowza at Amazon EC2 and I tried to activate stream target to scheduled live streaming on Facebook.

Described solution doesn’t work. PushPublishMap.txt file is located in [install-dir]/conf/PushPublishMap.txt

In Application folder there is only Application.xml file.

I tried to add “sendSSL”:“true” to PushPublishMap.txt file but it doesn’t work.

This is my PushPublishMap.txt file.

Where shall I put “sendSSL”:“true”?

# This file has been upgraded for use by the Wowza Streaming Engine REST API. Please avoid hand-editing.

# 

# Push Publishing Map file, format:

# 

# format:

# [src-stream-name]={Profile:[profile], [additional-configuration-items]}

# 

#myStream={profile:“rtmp”, streamName:“myStreamRTMP”, host:“localhost”, application:“live”, userName:“myuser”, password:“mypassword”}  
#myStream={profile:“mpegts”, streamName:“myStreamMPEGTS”, host:“239.1.1.1”, port:10000, rtpWrap:false}  
#myStream={profile:“rtp”, streamName:“myStreamRTP”, host:“239.1.1.1”, videoPort:10002, audioPort:10004}  
myStream={“entryName”:“Test”, “profile”:“rtmp”, “application”:“rtmp”, “port”:“443”, “destinationName”:“rtmp”, “host”:“[live-api-s.facebook.com](http://live-api-s.facebook.com)”, “streamName”:“690151504736723?s\_bl=0&s\_sw=0&s\_vt=api-s&a=Abw57jXXXXXXXX”}

---

<div class="post-metadata">

### Author: ![Fahri\_Cetin](https://avatars.discourse-cdn.com/v4/letter/f/8e8cbc/32.png) [@Fahri\_Cetin](https://community.wowza.com/u/Fahri_Cetin)
#### Post date: [January 22, 2020, 12:17pm UTC](https://community.wowza.com/t/how-to-stream-to-facebook-using-rtmps/53244/11 "2020-01-22T12:17:28Z")

</div>

Please add like above and restart your application.

myStream={“entryName”:“Test”, “profile”:“rtmp”, “application”:“rtmp”, “port”:“443”, “destinationName”:“rtmp”, “host”:“[live-api-s.facebook.com](http://live-api-s.facebook.com/)”, “streamName”:“690151504736723?s\_bl=0&s\_sw=0&s\_vt=api-s&a=Abw57jXXXXXXXX”, “sendSSL”:“true”}
