Wowza Community

How to create Facebook access token?

I created an access token of Facebook with app id and secret key.

The generated access token is in the format 477xxxxxxxxx|Pxxxxxxxxxxxxxxxx_dxxxx-pxx.

But by using this access token in rest api for creating the Facebook target. I got target error.

So When I look on the pushmapfile of wowza , in whichit containes the details of manually create a facebook target with access token in the format

ENC-exxxxxxxx-5xxxxxxxxxxxxxxxxxxx…

So please tell me, how to create an access token for facebook target which is in the required wowza format for creating a facebook streaming?

Hello @Elgi Eldhose, may I ask what you used to generate a token? I can share this with you from our Wowza docs:

Acquire a Facebook access token


When using the REST API to configure Wowza Streaming Engine to send a stream to Facebook Live, you must first use an external Facebook application that you’re developing to acquire a Facebook access token. Note the following requirements for the external Facebook application:

  • The app must have the required user and account permissions to post live videos to Facebook Live.
  • The app’s Require App Secret option must be disabled.

Did you already follow these steps already? Please let me know so I can further assist you. Thanks.

May I suggest you refer to this doc as well to make sure all requirements are met? Please do let me know if you still experience an issue.

https://www.wowza.com/docs/send-a-stream-to-facebook-with-wowza-streaming-engine-rest-api

same issue with facebook token format. I used Facebook SDK to get user facebook token by call Graph API request.

Hi Rose,

We have read the document you provided but at the “acquire a facebook access token” section, it doesn’t mention a solution for our issue.

The format of facebook access token is totally different with wowza required access token.

Can you please review the question again? I also submitted a support a ticket yesterday.

This piece of work is very important for our application.

Thank you

Regards,

Minh

I am checking with engineers on any potential updated solutions and I will respond again shortly. Thank you for your patience @Minh Hang.

There is a known issue with access tokens for FB stream targets created via the REST API and being accepted by the FB API. Our engineers are looking into it. If you need additional assistance right away, please open a support ticket. We are sorry for any inconvenience and are looking to resolve this asap. I will keep the community informed.

Please know that you can create a FB stream target through the Engine manager if that is a helpful workaround for now.

https://www.wowza.com/support/open-ticket

Here is an update from our tech support team:

We have made adjustments to account for changes in the Facebook API. There will no longer be an option to connect to Facebook Events, as this option is being deprecated on the Facebook side. But we have adjusted API call filtering to account for the change and clients should no longer be impacted in creating stream targets, if they are please ask them to submit a support ticket.

If you still experience issues, please do let me know. Thank you all for your patience.

Dear Rose,

Same issue with facebook token format. I used Postman to get user facebook token by call Graph API request.

And i read all conversation related to this topic. This issue has been running from long time. @Elgi Eldhose had posted this question on Nov 09, 2018 and It is 2019 but the problem is same.

So please mam share the sollution. This piece of work is very important for application.

Thank you.

Hi Rose,

We are facing the exact same problem. Unable to post a live_video to facebook using the access token acquired from facebook. We followed this article https://www.wowza.com/docs/send-a-stream-to-facebook-with-wowza-streaming-engine-rest-api as a guide line.

Wowza creates a stream target, but with Error! status.

Have you checked this @Mudassar Ahmad Mughal and @Abhishek Joshi?

When creating a Facebook Stream Target using the REST API and your own token, you must make sure that your Facebook app that is creating the token has Require App Secret disabled and then in the Stream Target parameters, you need to set facebook.useAppSecret to false.

Please try setting facebook.useAppSecret to false and see if that resolves your issue.

Hii mam,

I follwed all condition like require app secret disabled. But this token is not acceptable by wowza api.

Main think is that

The generated access token is in the format 477xxxxxxxxx|Pxxxxxxxxxxxxxxxx_dxxxx-pxx.

But by using this access token in rest api for creating the Facebook target. I got target error.

So When I look on the pushmapfile of wowza , in whichit containes the details of manually create a facebook target with access token in the format

ENC-exxxxxxxx-5xxxxxxxxxxxxxxxxxxx…

So please tell me, how to create an access token for facebook target which is in the required wowza format for creating a facebook streaming?

Please read it carefully. This is not a new question and this not the problem of required app secret disbaled because i followed every condition.

Dear Rose,

I agree with Abhiskek here. We followed the given instructions closely and accurately. The facebook app that we use to generate access token has “Require App Secret” disabled. We are also setting facebook.useAppSecret to false. Wowza creates a stream target, but with Error! status.

Regards,

M

Any news from wowza developer about push live to facebook case ?