FBML Invite dialog


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



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. function showInviteDialog() {
  3. var dialog = new Dialog();
  4. dialog
  5. .setStyle('width', '622px')
  6. .showMessage('Title', inviteDialogVariable);
  7. }
  8.  
  9. <a href="#" onclick="showInviteDialog(); return false;">Invite dialog</a>
  10.  
  11. <fb:js-string var="inviteDialogVariable">
  12.  
  13. <fb:request-form
  14. type="Button type"
  15. content="Invite <?php echo htmlentities('<fb:req-choice url="http://example.com/inviteAccepted.php" label="Button label"/>'); ?>"
  16. invite="true"
  17. action="http://where_to_sent_invite_uri/"
  18. method="post">
  19.  
  20. <fb:multi-friend-selector
  21. actiontext="Some text"
  22. showborder="false"
  23. email_invite="true"
  24. cols="4"/>
  25.  
  26. </fb:request-form>
  27.  
  28. </fb:js-string>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.