title: Facebook API Request Dialog not working with Safari
body: <p>I have the following code that logs the user in and displays the "Select Friends for Request" dialog ("apprequests"):</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
      &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
      &lt;head&gt;
      &lt;title&gt;Test&lt;/title&gt;
  
      &lt;script type="text/javascript"&gt;
      function facebook(){        
          FB.login(function(response) {
              if (response.authResponse) {
                  var access_token = FB.getAuthResponse()['accessToken'];
                  FB.ui({
                      method: 'apprequests',
                      message: 'Sample Title', 
                      max_recipients:1
                  }, function(response){          
                      console.log('OK');
                  });
              }
          }, {scope: 'publish_stream'});
      }
      &lt;/script&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
      &lt;p&gt;&lt;a href="javascript:facebook();"&gt;Test&lt;/a&gt;&lt;/p&gt;
      &lt;div id="fb-root"&gt;&lt;/div&gt;
  
      &lt;script type="text/javascript"&gt;
      (function(d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/es_LA/all.js#xfbml=0&amp;appId=XXXXXXXXXXXXXX";
        fjs.parentNode.insertBefore(js, fjs);
      }(document, 'script', 'facebook-jssdk'));
      &lt;/script&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>The code is working with all major browsers (Firefox, Chrome, Opera, IE11, Safari for IOS, Android browser). Safari (for Mac/PC) is the exception: it's opening the "apprequests" dialog but the dialog comes up empty. If you change the dropdown options (to "Friends to Invite" and then to "All Friends" again) the friend list finally appears.</p>
  
  <p>Any idea how to fix this bug?</p>
  
  <p>Thank you! </p>