Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get facebook video's original size(width & height) and how to get fql.video src_hq?

I tried to use facebook fql.video get video from my Idol's wall, then, how to get the video's original size(width & height)?

And I noticed one field named src_hq in fql table, in its description: The URL to the source file for the high quality version of the video.

but when I tried it in the browser directly. it warning:

Authorization Required

This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

So my another question is how to play video with the src_hq?

Thanks and regards.

like image 366
Giberno Avatar asked Dec 20 '25 07:12

Giberno


1 Answers

This Facebook page is the best resource. Click on "Try this query" which outputs a sample fql query (note: doesn't use fbapp.Fql(query). Take note of the &access_token=..... appended to the query. The XML output contains: <object width="400" height="224" > that you can use.

src_hq is an access problem, not a playback issue. Can the normal video be viewed on your Facebook? Usually if a high quality video is available, there is a box for [HQ], see sample video.

like image 124
Alvin K. Avatar answered Dec 22 '25 21:12

Alvin K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!