Is it possible to Create Facebook live Stream targets using REST API ?
Hello Kristian,
Unfortunately, due to the requirements of Facebook Live API, the custom tokens that are created would need to be generated from the Manager UI. This is because an application ID/secret is required to generate the access token.
You can alternatively have a third-party tool that can manage these tokens. You can then use the REST API to create/update stream targets and insert the tokens and RTMP URL information from the third-party tool as JSON data. The stream target would look similar to:
wowzademo.stream={“entryName”:“wowzafbdemo1”, “profile”:“rtmp-facebook”, “facebook.destName”:“My Timeline”, “facebook.streamId”:"", “facebook.accessToken”:“ENC-”, “facebook.streamURL”:“rtmp://rtmp-api.facebook.com:80/rtmp/”, “facebook.destId”:" ", “facebook.privacy”:“onlyMe”, “facebook.destType”:“timeline”, “facebook.description”:“Demo”, “destinationName”:“facebook”, “facebook.title”:“Wowza Demo Stream”}
To manage stream targets via REST API:
https://www.wowza.com/docs/stream-targets-query-examples-push-publishing
I hope this helps.
Thanks in advance,
Jason Hatchett
Hi Jason,
We are also working on face book live using Wowza, can you please explain what is
“facebook.destId” in the stream target
, how we can get ? Is it possible through Facebook Graph API?
I’ve tried to create Facebook stream target by /applications/live/pushpublish/mapentries.
My application got token from Facebook, send it as facebook.accessToken parameter and created stream target successfully.
It looks fine but the status of the stream target is Error.
I don’t know why it can’t use the token authorized by Facebook.
I would like to find a way to create Facebook live streams managed by Wowza with Facebook’s tokens.
Is there any possibility?