I believe Facebook has changed something recently. The videos I had on a site no longer work and just stopped working a few weeks ago. I also tested in a clean Drupal install and the videos still do not work. I applied the patch here #1949200: Facebook URL but it still does not work.

Is anyone else having issues?


emilflatz’s picture


I made it work by replacing code in $embed variable (file: video_embed_facebook.module line: 91 ) with the following:

$embed='<iframe src="https://www.facebook.com/video/embed?video_id=!id" width="!width" height="!height"></iframe> ';


brodiebrodie’s picture

could you tell me exactly which code you replaced, I have tried this and its still not working for me
Thank you

ursula’s picture

@emilflatz: works for me, thanks!

falster’s picture

I also struggeled with getting this to work. But I changed this:

 $embed = '<object>
      <param name="allowfullscreen" value="!fullscreen" />
      <param name="allowscriptaccess" value="always" />
      <param name="movie" value="https://www.facebook.com/video/embed?video_id=!id" />
      <param name="wmode" value="opaque" />
     <embed src="https://www.facebook.com/video/embed?video_id=!id" type="application/x-shockwave-flash" wmode="opaque"
       allowscriptaccess="always" allowfullscreen="!fullscreen" width="!width" height="!height">

With this:
$embed='<iframe src="https://www.facebook.com/video/embed?video_id=!id" width="!width" height="!height" frameborder="0"></iframe> ';

Could the maintainer please commit the fix to the module?

And at the same time correct the height and with description on the module settings page?

khasmir’s picture

Issue summary: View changes

This isn't fix at the module yet.

DerekAhmedzai’s picture

See #1949200: Facebook URL - I think it's because Facebook have changed the parameter in the url.

Looks like urls with the "v" parameter have stopped working.
Maybe try changing the urls in your content to use the "video_id" parameter?
Try these

plopesc’s picture

Status: Active » Closed (duplicate)

Marking as duplicated of #1949200: Facebook URL which has been fixed today.