Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determine MP4 video from regular Embed code

I'm 99% sure the answer is No, but worth a shot as you never know...

The typical "copy & paste" embed code for uploaded Facebook videos goes like this:

<object width="400" height="300" ><param name="allowfullscreen" value="true" />
  <param name="movie" value="http://www.facebook.com/v/12345678910111213" />
  <embed src="http://www.facebook.com/v/12345678910111213" type="application/x-shockwave-flash" allowfullscreen="true" width="400" height="300"></embed>
</object>

From this, is there any way to determine what the MP4 url is?

Alternatively, YouTube and Vimeo have provided access to a "HTML5" friendly embed using an IFRAME. Is there a Facebook equivalent?

And yes, using the Graph API you can get embed_html but I deliberately want to avoid that route.

Thanks.

like image 939
donohoe Avatar asked Dec 06 '25 05:12

donohoe


1 Answers

You can get the link direct to the video from src attribute of the FQL video table.

If you're looking for any video belonging to the user:

fql?q=SELECT src FROM video WHERE owner=me()

or if you have the video ID:

fql?q=SELECT src FROM video WHERE vid=2031763147233

and if you need the HQ version query for src_hq instead of src

like image 123
DMCS Avatar answered Dec 08 '25 21:12

DMCS



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!