Posts tagged with facebook-live-api

I want to check who has created a live video on a Facebook page using the Graph API. When I access the feed and select the 'from' field (https://graph.facebook.com/20.0//live_videos?fields=from), it shows that the creator is the same as the page name. I also tried to get the video ID and then find the admin_creator, but it doesn't give me anything. Any ideas on how I can find out who created the live video?

To check the creator of a live video on a Facebook page using the Graph API.

HI im trying to create live stream RTMS url with product_items enum list. Please give me solution how i can add the products , note the product id already created in facebook and it's facebook product id, also try to assign array of enum like ['productId1','productId2'] but still not working here the code

        try {             $response = $this->fbLatest->post("/" . $this->pageID . "/live_videos", [                 'access_token' => $this->accessToken,                 'status' => 'LIVE_NOW',                 'title' => 'testtsss',                 'description' => 'asdsadasdadasdadadad',                 'product_items' =>                  [                         array(                             'id' => "25252395334406077",                             'retailer_id' => "25252395334406077",                             'product_id' => "25252395334406077",                             'position' => array(                                 'x' => 0.1,                                 'y' => 0.1                             ),                             'start_time_offset_ms' => 0,                             'end_time_offset_ms' => 60000                         ),                 ]             ]);             $graphNode = $response->getGraphNode();             $stream_url = $graphNode->getField('stream_url');             $streamID = $graphNode->getField('id');             dd($graphNode , $stream_url);         } catch (\Facebook\Exceptions\FacebookResponseException $e) {             dd($e);             echo 'Graph returned an error: ' . $e->getMessage();         } catch (\Facebook\Exceptions\FacebookSDKException $e) {             dd($e);             echo 'Facebook SDK returned an error: ' . $e->getMessage();         } 

here the error:

Please help with this.