Iframe应用使用FBML或者FBML

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head></head>
<body>

//Renders the FBML on a Facebook server inside an iframe
<fb:serverfbml>
<script type="text/fbml">
<fb:fbml>
<fb:tabs>
  <fb:tab-item href='http://apps.facebook.com/xx/index.php' title='Home' selected='true'/>
  <fb:tab-item href='http://apps.facebook.com/xx/invite.php' title='Invite' />
  <fb:tab-item href='http://apps.facebook.com/xx/pay.php' title='Pay' />
 </fb:tabs>
</fb:fbml>
</script>
</fb:serverfbml>

//ini 
    <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>   
    <script type="text/javascript">
    FB.init("<?php echo FB_API_KEY ?>","xd_receiver.html");
    </script>
  </body>
</html>
 

你可能感兴趣的:(JavaScript,html,PHP,XHTML,Facebook)