title: Iframe dialogs must be called with a session key
body: <p>I'm trying to call <code>FB.ui</code> to make a wall post in an iframe. However, when I set display to iframe, I get a <code>102 error "Iframe dialogs must be called with a session key"</code>. I have an access token, I'm logged in, everything else seems to be working (I can even post directly to the stream with PHP without bringing up the prompt). Any ideas?</p>
  
  <p><strong>PHP:</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>require_once('facebook.php');
  define('APP_ID',"276733022359677");
  define('APP_SECRET',"xxxx");
  $my_url = URI_B."/spider/";
  
  $config = array();
  $config['appId'] = APP_ID;
  $config['secret'] = APP_SECRET;
  $facebook = new Facebook($config);
  $fbid = $facebook-&gt;getUser();
  if($fbid == 0){
      $scope = "";
      header("Location: ".$facebook-&gt;getLoginUrl($scope));
  }
  </code></pre>
  
  <p><strong>Javascript:</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>FB.init({appId: "276733022359677", status: true, cookie: true});
  function publish() {
      var obj = {
          display: 'iframe',
          method: 'feed',
          link: 'http://discussiontopic.comyr.com/spider/',
          name: 'Test',
          caption: 'Test Caption',
          description: 'This is a test.'
      };
  
      FB.ui(obj);
  }
  </code></pre>
  
  <p>I also get an unspecified error at the login page (if redirected there to log in).</p>