# Create Facebook Stream via API

**URL:** <https://community.wowza.com/t/create-facebook-stream-via-api/34404>\
**Category:** Wowza Streaming Engine\
**Created:** [September 8, 2016, 3:40pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404 "2016-09-08T15:40:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heinz\_Lechner](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Heinz\_Lechner](https://community.wowza.com/u/Heinz_Lechner)\
**Post date:** [September 8, 2016, 3:40pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404/1 "2016-09-08T15:40:58Z")

</div>

Hi!

I want to establish a stream to Facebook but with my own oAuth procedure

My Streamtarget Looks like this

 ![](https://us1.discourse-cdn.com/flex002/uploads/wowza1/original/2X/e/e8e9a37206eda4969dc394d1086f113a97878214.jpeg)

The error log says

> PushPublishRTMP.internalConnect[rtmp://rtmp://rtmp-api.facebook.com:80/xxx/rtmp/?s\_t=1&a=xxx]: couldn’t connect with host rtmp://rtmp-api.facebook.com

when I remove the “rtmp://” from the Destination host, the Connections Fails but without any log entry

Any suggestions?

Regards

Robert

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [September 30, 2016, 3:20pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404/2 "2016-09-30T15:20:55Z")

</div>

Hi,

Certainly the first error is due to the malformed URL. In Destination Host you just need to enter the hostname without the rtmp://. As for why it fails when the host is correct, that’s difficult to say without seeing more debug. Have you enabled Debug Log for the stream target? Also as I’m sure you know we have a built-in Facebook stream target profile now which handles all of the authentication side of things. I would recommend you use that if possible. It may still be possible to publish to Facebook using a generic RTMP stream target but we don’t have any specific workflow for that outside of what you are setting up.

If the problem continues and you have been able to capture more diagnostics then please consider [opening a support ticket](https://www.wowza.com/support/open-ticket) and we can take a deeper look.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Chris\_Grey](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@Chris\_Grey](https://community.wowza.com/u/Chris_Grey)\
**Post date:** [February 9, 2018, 11:48pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404/3 "2018-02-09T23:48:27Z")

</div>

Hello Robert did you make any headway with this? I’m trying to do something similar. I hope to hear from you soon.

-Chris

---

<div class="post-metadata">

**Author:** ![Chaiyanan\_Charoenpan](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@Chaiyanan\_Charoenpan](https://community.wowza.com/u/Chaiyanan_Charoenpan)\
**Post date:** [April 22, 2019, 3:11pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404/4 "2019-04-22T15:11:49Z")

</div>

Hi

now Facebook use SSL  
how to stream by RTMPS in Wowza

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [April 22, 2019, 4:11pm UTC](https://community.wowza.com/t/create-facebook-stream-via-api/34404/5 "2019-04-22T16:11:38Z")

</div>

Wowza Streaming Engine supports RTMPS when using stream targets, but you need to add the value “sendSSL” as shown in the article below.

[https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing#about-map-profiles](https://www.wowza.com/docs/how-to-push-streams-to-cdns-and-other-services-push-publishing#about-map-profiles)

From the article:

> **sendSSL** Set to **true** to enable Wowza Streaming Engine to send secure streams to the stream target destination (default is **false** ).

You can also create a Stream Target and add the “sendSSL” option via our REST API as shown in our documentation below.  
[https://www.wowza.com/docs/stream-targets-query-examples-push-publishing](https://www.wowza.com/docs/stream-targets-query-examples-push-publishing)

While sendSSL does allow you to use rtmps as the default URL to select, you should not need to add it to a Facebook stream target to do rtmps since the stream target automatically chooses the rtmps URL that Facebook provides…

Please let me know if this answers your question.
