title: invite Facebook friends to Rails application
body: <p>I am trying to send friends an invitation or request to visit a website I am building.</p>
  
  <p>I have the following dialogue box which allows me to select the friends I wish to invite:</p>
  
  <pre><code>&lt;div id="fb-root"&gt;&lt;/div&gt;
  &lt;a href="#" id="invite_fb_friends"&gt;Invite your friends&lt;/a&gt;
  &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(function(){
      $("a#invite_fb_friends").click(function(){
          FB.init({
          appId: '239473799421284',
          status: true,
          cookie: false,
          // xfbml: true
          });
  
  FB.ui({
  method: 'apprequests',
  message: '&lt;%=current_user.name %&gt; has invite you to a party for &lt;%=get_current_board.bp_name%&gt;'});
  });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>This works fine and I send the invitation. However when the user clicks the accept button they just reload the same page they are on.</p>
  
  <p>Here is the setup in Facebook for the Application:</p>
  
  <p>Website</p>
  
  <pre><code>Site URL:http://localhost:3000/
  
  Site Domain:localhost
  
  App on Facebook
  Canvas URL:http://localhost:3000/pages/facebook_invite/
  </code></pre>
  
  <p>How can I get this link to go to my site?</p>