找出Facebook页面是否正在实时流式传输 [英] Find out whether Facebook page is live streaming

查看:53
本文介绍了找出Facebook页面是否正在实时流式传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以找出某个Facebook页面当前是否正在实时流式传输?我正在查看Facebook API,从那里看来,这是不可能的,因为/{page_id}/live_videos 似乎仅在您是页面管理员时才有效(或者您曾经授予访问权限),因为如果没有页面访问令牌,您将无法阅读公开的实时视频.

Is possible to find out whether some facebook page is live streaming right now? I was looking at Facebook API and from there it seems to me that it is not possible since /{page_id}/live_videos seems to be working only if you are an admin of the page (or you have been granted the access) since you cannot read live videos of public without page access token.

推荐答案

是的,可以.这实际上称为WebHook(某个应用程序/用户同时通知页面上的更改).为此,您必须创建一个Facebook应用程序,该应用程序将订阅您要跟踪的特定页面上所做的更改.

Yes, you can. This is actually called a WebHook (simultaneous notification of a certain app/user about changes made on the page). To do this you will have to create a Facebook App that will be subscribed to the changes made on a certain page that you want to track.

您可以简单地从应用程序的仪表板或通过 Graph API 2.7 (因为此版本支持 live_videos )来执行此操作,调用 {app-id}/订阅,然后选择任何页面对象订阅,可通过Facebook API(在您的情况下为 live_videos )获得.

You can simply do this from the dashboard of the app or through Graph API 2.7(since this version supports live_videos) calling {app-id}/subscriptions and choose any of Page Object Subscriptions, which are available through Facebook API(in your case live_videos).

对于这种订阅,需要将您的应用列入白名单,以免向特定页面发送垃圾邮件或重新传输从其接收的信息.

For this kind of subscriptions your app needs to be whitelisted in order not to spam or re-transmit the information received from a certain page.

要获取有关WebHook实施的更多信息,请阅读Facebook API文档: https://developers.facebook.com/docs/graph-api/webhooks

To get more information about WebHook implementation please read Facebook API documenation: https://developers.facebook.com/docs/graph-api/webhooks

这篇关于找出Facebook页面是否正在实时流式传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆