Skrypt Facebook sie nie wykonuje
<?php
require('../connect.php');
//echo'<meta http-equiv="refresh" content="5">';
//ini_set('display_errors',0);
$id=$_GET['id'];
$next=$id+1;
require("../facebook.php");
$facebook = new Facebook
(array( 'appId' => $app_id,
'secret' => $app_secret,
));
mysql_query("UPDATE `token_wdechowe` SET `active` = '0' WHERE `id`='$id'");
$jakis_los = rand(1
,1000
);
$post =mysql_query("SELECT * FROM shity WHERE id ='2392'"); //$post =mysql_query("SELECT * FROM `shity` ORDER BY RAND() LIMIT 0,1");
$qccdd =mysql_query("SELECT * FROM `token_wdechowe` WHERE id='$id' ");
//if(date('d')==$qcc['wrzucenie']){die('Juz dodalem<br><hr>');}
//$facebook->setAccessToken();
$img = $post['img'];
$typ='obrazek.php?'.$post['id'];
//$pic = str_replace('upload','upload_min',$post['img']);
$table = array(':)','
','=D','
',';)','
','
');
$minka = $table[$rlos];
$alle = $facebook->api('/me/feed', 'POST', array( 'access_token' =>$qcc['token'],
'link' => 'http://www.takie-tu.pl/redir.php?typ='.$typ,
//'message' => 'O nieee !!!',
'message' => 'takie switfocie to mi sie podobaja ',
'description' => rand(978,2987).' osób widziało ten obrazek !!!', 'name' => $post['title'],
'caption' => 'wdeche',
'picture' => 'http://www.takie-tu.pl/img/obrazki/'.$img
));
mysql_query("UPDATE `token_wdechowe` SET `wrzucenie` = '$czasek',`active` = '1' WHERE `id`='$id'");
if($alle){
echo "<b style='color:green;'>Dodabne</b>".$post['title']; }else{
echo "<b style='color:red;'>Nie dodano</b>"; }
echo '<script>document.location="?id='.$next.'";</script>';
?>
Jesli go odpale w przegladarce nic sie nie wyswietla

Co robic. Prosze o jakies propozycje