title: API Error Description: Session key invalid or no longer valid (error 102)
body: <p>I cant figure out why facebook publish is not working on this site </p>
  
  <p>I get</p>
  
  <p>API Error Code: 102
  API Error Description: Session key invalid or no longer valid
  Error Message: Iframe dialogs must be called with a session key</p>
  
  <p>While calling the stream.publish method as iframe</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      (function() {
        var e = document.createElement('script'); e.async = true;
        e.src = document.location.protocol 
          + '//connect.facebook.net/fr_FR/all.js';
        document.getElementById('fb-root').appendChild(e);
      }());
  
  
      window.fbAsyncInit = function()
      {
        FB.init({     appId: '303380259758621',
              status: true,
              channelUrl: 'http://www.crabegame.com/channel.php',
              cookie: true,
              xfbml: true,
              oauth: true});
  
      }
  
  
      function PublishStream(score)
      {
          FB.ui(
          {
              method: 'stream.publish',
              display    : 'iframe',
              message    : '',
              attachment:
              {
              name: 'CrabeGame',
              caption: 'Essaye de battre mon score sur le Crabe Game !',
              description: "J'ai réalisé un score de " + score  +  "points au Crabe Game !",
              href: 'http://www.crabegame.com',
              media:
              [
                  {
                  type: 'image',
                  src: 'http://crabegame.com/media/crabe_fb.png',
                  href: 'http://www.crabegame.com'
                  }
              ]
              },
              action_links:
              [
              {
                  text: 'Play Crabe Game',
                  href: 'http://www.crabe-game.com'
              }
              ],
              user_message_prompt: 'Publier sur votre mur'
          },
          function (response)
          {
              if (response &amp;&amp; response.post_id)
              {
  
              }
          }
          );
      }
  &lt;/script&gt;
  </code></pre>