Facebook Live Video - Graph API to get Length of VOD

204 views Asked by At

I use the Graph API to publish live videos of a user in my app. I can retrieve details of that video with the videoId when the video is not live anymore, and I get a status of LIVE_STOPPED (and later I get a status of VOD).

So my question, is there any way to know the duration (length) of the video when it's over?

I tried to get the field length, but it's not available, and seconds_left returns 0.

1

There are 1 answers

2
CBroe On BEST ANSWER

I tried to get the field length, but it's not available

Not on the live video itself, no. But the live video has a field video, the documentation describes it as “The inside video of the live video” - and that is a normal Video object, and as such has a length property.

(Not sure at which point that will contain a sensible value in this constellation though, you’d have to check.)