Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By moshebeeri on
This post is for ones who like to add youtube support with fb module, using facebook FBML.
This hoke works for me, I hope it will work for others as well.
/**
* The embedded flash displaying the youtube video.
*/
function theme_emvideo_youtube_flash($embed, $width, $height, $autoplay, $options = array()) {
.....
FLASH;
//added to support facebook <<<---------------------------HERE IS THE NEEDED CHANGE---------------------------
if(isset($_REQUEST['fb_sig_api_key'])){
$output = '';
}
}
}
return $output;
}