Embed Facebook Live video comments on page -
i using facebook live inside of web app live stream videos. wondering if possible include live commenting associated video on site in real time. know can grab comments graph api, not real time. comment embed widget not real time , need refreshed.
the documentation says :
"you can read live video comments polling live video comments edge."
what polling? how do , possible front end web app.
basically question how include live comments along facebook live video on own website.
i know can grab comments graph api, not real time.
this real time can get. if posts comment , query graph api, see comment.
what polling?
as there no streaming data endpoint comments, must query comments on live video repeatedly. is, every 2 seconds or so, refresh data.
this done making graph api request /{video-id}/comments. suggest setting "order": "reverse_chronological" in parameters newest comments first.
you can see sample code doing part of live comments teleprompter: https://github.com/fbsamples/live-comments-teleprompter/blob/master/js/main.js#l89-l103
Comments
Post a Comment