Arkadaşlar elimde webloade.r 7 için facebook botu var yanlız botla eklediğim video player da oynatmıyo. not found access hatası vermekde.
Sanırım aşağıdaki kodlarla ilgili, normalde uzun süre çalışmıştı
$flvci=$va['vid'];
preg_match('#facebook=(.*?)=mp4#i',$flvci,$x);
if(isset($x[1])){
function getir($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT,'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)');
$x = curl_exec($ch);
curl_close($ch);
return $x;
}
function facelink($link) {
$link = str_replace ("\u00253A",":",$link);
$link = str_replace ("\u00252F","/",$link);
$link = str_replace ("\u002526","&",$link);
$link = str_replace ("\u00253F","?",$link);
$link = str_replace ("\u00253D","=",$link);
return $link;
}
$bak = getir('http://www.facebook.com/video/video.php?v='.$x[1]);
preg_match('#"video_src","(.*?)"#i',$bak,$ver);
$flvci = facelink($ver[1]);
}
?>Bu kodlarda ne gibi değişiklik/güncelleme yapmak gerekiyor, yardımcı olurmusunuz