# Can I add Facebook Live stream target to my stream using API?

**URL:** <https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178>\
**Category:** Wowza Developer Dojo\
**Created:** [July 24, 2016, 11:01pm UTC](https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178 "2016-07-24T23:01:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_Pastuhov](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@Nick\_Pastuhov](https://community.wowza.com/u/Nick_Pastuhov)\
**Post date:** [July 24, 2016, 11:01pm UTC](https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178/1 "2016-07-24T23:01:38Z")

</div>

Hi.

I couldn’t find the answer in API docs: can I add Facebook Live stream target to my stream using API?

Is there any example on how to do this? (which parameters to send)

P.S.: in our system we create an unique stream with unique name for each broadcast, so we can’t add stream target by hand each time through Streaming Engine Control Panel.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [August 11, 2016, 8:13pm UTC](https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178/2 "2016-08-11T20:13:51Z")

</div>

Hi,

You will need to have some method to generate the Facebook authentication tokens using your own application or system, as the Facebook API requires these. The Streaming Engine Manager UI has its own application ID that allows it to generate this token. Once you are able to generate the token, then you can use the generic RTMP profile to create the stream target.

Michelle

---

<div class="post-metadata">

**Author:** ![philip\_curley](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@philip\_curley](https://community.wowza.com/u/philip_curley)\
**Post date:** [July 28, 2016, 7:16am UTC](https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178/3 "2016-07-28T07:16:45Z")

</div>

I can tell you that our organization is using the API to do this. Facebook Live uses RTMP to ingest streams so you can POST to the /pushpublish/mapentries endpoint to create a stream target. You would pass the data necessary for any generic RTMP server (host, port, sourceStreamName, application, enabled, streamName, entryName, profile).

---

<div class="post-metadata">

**Author:** ![Usama\_Mushtaq](https://avatars.discourse-cdn.com/v4/letter/u/e8c25b/32.png) [@Usama\_Mushtaq](https://community.wowza.com/u/Usama_Mushtaq)\
**Post date:** [June 15, 2017, 9:06pm UTC](https://community.wowza.com/t/can-i-add-facebook-live-stream-target-to-my-stream-using-api/46178/4 "2017-06-15T21:06:11Z")

</div>

Hi!

I am streaming on facebook using rtmp push module. but if the encoder got disconnected for few seconds from wowza rtmp push module terminate’s the connection from facebook gracefully and facebook does not wait for reconnection and rtmp url expires.  
for re-stream i have to generate a new rtmp url from app but new rtmp url post a new live video on facebook.

any suggestion how can i resume the faceboook stream on encoder reconnect…??
