以前我的代碼運行良好,但現在它什麼都不做
我想顯示一個對話框,然後用戶將能夠選擇一些朋友並邀請他們使用此應用程序。
此代碼顯示空白頁面。邀請朋友加入應用程序 - Facebook
<?php
include_once "fbmain.php";
if (isset($_REQUEST['ids'])){
echo "Invitation Sent";
$string = "<script type='text/javascript'>top.location.href='{$fbconfig['appBaseUrl']}';</script>";
echo $string;
}
else {
?>
<fb:serverFbml style="width: 500px;">
<script type="text/fbml">
<fb:fbml>
<fb:request-form
action="<?=$fbconfig['baseUrl']?>/invite.php"
target="_top"
method="POST"
invite="true"
type= <?php echo $fbconfig['appname']; ?>
content="I tried this and love this, what about you ? <fb:req-choice url='<?php echo $fbconfig['appBaseUrl']; ?>' label='Accept' />"
>
<fb:multi-friend-selector
showborder="false"
actiontext=<?php echo $fbconfig['appname' ]; ?>>
</fb:request-form>
</fb:fbml>
</script>
它渲染的BLA nk page,NO ERROR – Sourav 2011-06-07 05:58:35