Bu kodu nasıl düzenleyebilirim ? davet yolluyorum ama karşı tarafa birşey gitmiyor.


<?php
include_once 'inc/config.php';
include_once 'inc/facebook.php';

$facebook = new Facebook(array(
    'appId'  => $appId,
    'secret' => $secret,
    'cookie' => true,
    'domain' => $_SERVER["HTTP_HOST"]
));
 
$session = $facebook->getSession();
if (!$session) {
    $url = $facebook->getLoginUrl(array(
               'canvas' => 1,
               'fbconnect' => 0,
               'req_perms'=>'publish_stream'
           ));
    echo "<script type='text/javascript'>top.location.href = '$url';</script>";
 	exit();
}

$userid=$session['uid'];
$uyebilgi = uyebilgi($userid);
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Facebook xxxx </title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: '<?=$appId?>', status: true, cookie: true, xfbml: true},"xd_receiver.htm");
  };
  (function() {
    var e = document.createElement('script');
    e.type = 'text/javascript';
    e.src = document.location.protocol +
      '//connect.facebook.net/tr_TR/all.js';
    e.async = false;
    document.getElementById('fb-root').appendChild(e);
  }());
</script>
<div class="menu">
<a class="fbtab" href="index.php">Facebook xxx </a>
<a class="fbtab" href="#">Arkadaşını Davet Et</a>
<fb:bookmark></fb:bookmark>
<div style="clear:both"></div>
</div>


<fb:serverfbml> 
    <script type="text/fbml"> 
        <fb:request-form action="<?=$appUrl?>" target="_top" method="POST" invite="true" type="Facebook mesaj" 
        content="Facebook mesaj Sende Gelsene! &lt;fb:req-choice url=&quot;<?=$appUrl?>&quot; label=&quot;Facebook mesaj &quot; /&gt;">
            <fb:multi-friend-selector showborder="false" actiontext="Arkadaşlarını Davet Et!"  rows="4" cols="4"  bypass="cancel" target="_top"  /> 
        </fb:request-form>
    </script> 
</fb:serverfbml> 


</body>
</html>