MyBB Community Forums

Full Version: Facebook Video
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to share facebook videos on my MYBB forum. I used to have right codes before 3 month ago. But now my videos didn't work. Some Film-TVseries sites and forums are using new facebook video embedding system. Anybody have this facebook video embedding codes?

It's my old codes.

Embedding;
<embed src="http://supernaturalturkey.com/izle.swf" width="640" height="480" allowscriptaccess="always" allowfullscreen="true" flashvars="width=640&volume=100&displayclick=true&fullscreen=true&file=http://supernaturalturkey.com/git.php?link=http://video.ak.fbcdn.net/cfs-ak-ash4/453452/497/185181668256168_44547.mp4&logo=http://supernaturalturkey.com/backplayer.png"/>

git.php
<?
if ($_REQUEST['link']){
    header("Location: ".faceduzelt($_REQUEST['link']));
    exit;
}
function faceduzelt($url)
{
    preg_match('/([\d]+)*_[\d]+\./',$url,$id);
    $data = file_get_contents("http://www.facebook.com/ajax/flash/expand_inline.php?target_div=u879823_18&__a=1&v=".$id[1]);
    $karakter = array('\\\\u00253A'=>':','\\\\u00252F'=>"/",'\\\\u00253F'=>'?','\\\\u002526'=>'&','\\\\u00253D'=>'=');
    preg_match('@\\\"video_src\\\", \\\"([^"]*)\\\"@i',$data,$adres);
    return ($adres[1])?str_replace(array_keys($karakter),$karakter,$adres[1]):false;
}

?> 

Sorry for my bad english :)
Stop the duplicate threads. This is not security-related at all.