title: Facebook Login Popup Box Blank
body: <p>After making a quick static landing page we noticed that the facebook login does not work. It simply pops open a box and then automatically redirects before being allowed to sign in or decline.</p>
  
  <p>Please have a look at <a href="http://www.gemroc.com/landing/index.html" rel="nofollow noreferrer">http://www.gemroc.com/landing/index.html</a></p>
  
  <p>That is our landing page. You can see the issue I am having there.</p>
  
  <p>Again, we copied over the fb source code into this page. I am guessing that is where the issue is.</p>
  
  <p>Here is what I suspect may be the cause since it was copied from the source code.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;     
  (function(d){
      var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];     
      if (d.getElementById(id)) {return;}
          js = d.createElement('script'); js.id = id; js.async = true;
          js.src = "https://connect.facebook.net/en_US/all.js";
          ref.parentNode.insertBefore(js, ref);
      }(document));
  
  window.fbAsyncInit = function() {
      FB.init({
          appId      : 'OurAppID', 
          status     : true, 
          cookie     : true,
          xfbml      : true  
      }); 
      Event.observe(window, 'load', function() {
          Event.fire(document, 'fbinit:ready',{});
      });
  };  
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  Event.observe(document, 'fbinit:ready', function(event){
      mpFBConnect.init("https://www.facebook.com/dialog/oauth?client_id=430913623675901&amp;redirect_uri=http%3A%2F%2Fwww.gemroc.com%2Ffacebookconnect%2Flogin%2F&amp;state=a728aaf88633a0e24b793630a1b01194&amp;scope=email%2Cpublish_stream&amp;display=popup");
  });
  
  mpFBConnect.facebookconnectform = '&lt;form id="facebookconnectform" method="post" action="https://www.gemroc.com/facebookconnect/login/"&gt;' +
      '&lt;input type="hidden" name="return" value="aHR0cDovL3d3dy5qamV3ZWwuY29tLw==" /&gt;' +
      '&lt;input type="hidden" name="fbconnecttype" value="form" /&gt;' +
      '&lt;/form&gt;';
  &lt;/script&gt;
  </code></pre>