IFrame invite dialog


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  6. <script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
  7. <style type="text/css" media="screen">
  8. html, body{
  9. margin:0px;
  10. padding:0px;
  11. }
  12.  
  13. </head>
  14. <body>
  15. <script type="text/javascript">
  16. FB.init("<?php echo $this->api_key; ?>", "<?php echo $this->serverUrl() . '/data/xd_receiver.htm'; ?>");
  17. </script>
  18. <a class="close" href="#" onclick="document.location = '<?php echo $this->serverUrl() . "/img/1px.gif"; ?>'; return false;"></a>
  19.  
  20. <fb:serverFbml>
  21. <script type="text/fbml">
  22. <fb:fbml>
  23. <div class="wrap">
  24. <fb:request-form
  25. type="Test"
  26. content="<?php echo $this->inviteText . htmlentities('<fb:req-choice url="' . $this->serverUrl() . $this->url(array('action' => 'inviteaccepted')) . '" label="Label"/>'); ?>"
  27. invite="true"
  28. action="<?php echo $this->serverUrl() . $this->url(array('action' => 'invitesent')); ?>"
  29. method="post">
  30.  
  31. <div class="inviteWrap">
  32. <div class="headerImage"></div>
  33. </div>
  34.  
  35. <div class="friendWrap">
  36. <fb:multi-friend-selector
  37. actiontext="text"
  38. showborder="false"
  39. email_invite="true"
  40. cols="4"/>
  41. </div>
  42.  
  43. </fb:request-form>
  44. </div>
  45.  
  46. </fb:fbml>
  47. </script>
  48. </fb:serverFbml>
  49. </body>
  50. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.