Dialog is not defined

Posted by Clay McClure on Stack Overflow See other posts from Stack Overflow or by Clay McClure
Published on 2010-04-09T06:45:31Z Indexed on 2010/04/09 6:53 UTC
Read the original article Hit count: 410

Filed under:
|

I'm building my first Facebook Connect application, and am running into an odd problem. This example code:

<script type="text/javascript" charset="utf-8">
  FB.init("{{ FACEBOOK_API_KEY }}", "{% url xd_receiver %}");
  FB.ensureInit(function() {
    var invite_dialog;
    function showInviteDialog() {
      invite_dialog = new Dialog(Dialog.DIALOG_POP).showMessage('Share with Friends', invite_friends_selector, null, null);
    }
    function hideInviteDialog() {
      invite_dialog.hide();
    }
    showInviteDialog();
  });
</script>

keeps throwing the error:

Dialog is not defined

Is Dialog available in Facebook connect/XFBML applications? Do I need to do anything special in order to use it?

Thanks in advance!

© Stack Overflow or respective owner

Related posts about facebook-connect

Related posts about dialog