简体   繁体   中英

Facebook Live API Not Announcing Videos

Using Graph I've created a page in PHP to automatically create "scheduled" live videos for our page. I have permissions correct, at least according to their documentation ( publish_actions, manage_pages, publish_pages, public_profile ).

I have followed the documentation located here . It creates the "scheduled" live video correctly. The video shows up under publishing tools in my pages manager as well. But the announcement on the page isn't there, it should be.

If I follow the normal procedure to create a scheduled live video from publisher tools, it schedules, then creates the announcement on my page timeline.

These are the key/value pairs I am sending:

$params = array(
    'access_token' => '{HIDDEN}',
    'planned_start_time' => $startTime,
    'status' => 'SCHEDULED_UNPUBLISHED',
    'title' => $dateTitle
);

And I am posting to /{PAGE_ID}/live_videos as per the documentation, using their SDK for PHP.

The code has to be correct that I am sending since it creates the scheduled video in the publisher tools, and no permission errors or other are returned to me. It returns a video ID actually, so I know that part works.

If I query, in the graph explorer, my pages live_videos feed, I get all videos I have streamed correctly, and at the top my newest one with the status SCHEDULED_UNPUBLISHED . This status is the same as all the other videos published from publisher tools.

So to summarize, it creates the video fine, I have even tried streaming to the stream url, it works. I can even view the video afterward. But it won't publish a scheduled video announcement to my timeline via the API, only the publisher tools page.

我自己没有使用过实时视频API,但是从阅读文档中可以看出,当你测试的时候,你计划的开始时间不到10分钟就可以了,而且公告会立即被删除?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM