سلام عليكم قمث بانشاء برنامج بسيط لجلبب معلومات حساب الفايسبوك

واستعملت دالة لجلب المعلومات من خلال الرابط الخاص بالحساب وهي دالة

file_get_contents()

وهي تعمل بكفاءة على سيرفر المحلي لكن على الاستضافة ولم تعمل وهدا مثال http://iraq-store.info/tools / <?php

error_reporting(0);
  $url=$_POST['u'];
  if( !isset($url) or $url=="" or empty($url) ) {
header("location:index.php");
            echo    '<script type="text/javascript" >';
        echo '  alert("An error occured! I think it is a server problem. Please try again later.")';
        echo '  </script>';
} else{
function getBetween($content,$start,$end) {$r = explode($start, $content); if(isset($r[1])){$r = explode($end, $r[1]);return $r[0];}return '';}
  if(substr($url, -1) == "/") {
    $url = substr($url, 0, strlen($url)-1);
  }
  $url = end(explode("/", $url));
  $profileimage = "http://graph.facebook.com/$url/picture";
 $id = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'id":"', '","'));
 $art[name] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'name":"', '","'));
   $art[first_name] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'first_name":"', '","'));
   $art[last_name] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'last_name":"', '","'));
   $art[gender] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'gender":"', '","'));
   $art[username] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'username":"', '","'));
   $art[middle_name] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'middle_name":"', '","'));
    $art[locale] = strtoupper(getBetween(file_get_contents("http://graph.facebook.com/".$url), 'locale":"', '","'));
   $art[link] = "www.facebook.com/".$url."/";
}
    ?>

هل هناك حل او بديل لدالة file_get_contents()