Using the schedule. I created a page in PHP to automatically create "scheduled" videos for our page. I have the right rights, at least according to their documentation ( publish_actions, manage_pages, publish_pages, public_profile ).
I followed the documentation located here here . It correctly creates a “scheduled” real-time video. The video also appears in the "Publishing Tools" section of my page manager. But there is no announcement on the page, it should be.
If I follow the usual procedure for creating a planned live video from the publisher’s tools, he plans and then creates an ad on my page timeline.
These are the key / value pairs that I send:
$params = array( 'access_token' => '{HIDDEN}', 'planned_start_time' => $startTime, 'status' => 'SCHEDULED_UNPUBLISHED', 'title' => $dateTitle );
And I send the message /{PAGE_ID}/live_videos as per the documentation using their PHP SDK.
The code must be correct if I submit it, because it creates the scheduled video in the tools of the publisher, and no permission errors or others are returned to me. It really returns the video id, so I know this part works.
If I live_videos my live_videos pages in the graph live_videos , I get all the videos that I transferred correctly, and at the top the latest one with the status SCHEDULED_UNPUBLISHED . This status matches all other videos published in the publisher’s tools.
So, to summarize, it creates the video in order, I even tried passing the streaming url, it works. After that I can watch the video. But he will not publish the planned video ad on my timeline through the API, but only the publisher’s tool page.
php facebook facebook-graph-api facebook-live-api
jfreak53
source share