title: An active access token must be used to query information about the current user with open graph
body: <p>Hello everyone I'm trying to post the activity of users of my facebook app, I follow the tutorial step by step but it doesn't work properly...</p>
  
  <p>The alert message show me the error "Error occured An active access token must be used to query information about the current user" why?? I'm loged correctly.</p>
  
  <p>The code is this:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
    xmlns:fb="https://www.facebook.com/2008/fbml"&gt; 
  &lt;head prefix="og: http://ogp.me/ns# appnamespace: 
                http://ogp.me/ns/apps/appnamespace#"&gt;
   &lt;title&gt;OG Tutorial App&lt;/title&gt;
     &lt;meta property="fb:app_id" content="appID" /&gt; 
     &lt;meta property="og:type" content="appnamespace:recipe" /&gt; 
     &lt;meta property="og:title" content="Stuffed Cookies" /&gt; 
     &lt;meta property="og:image" content="http://www.domain.com/logo.gif" /&gt; 
     &lt;meta property="og:description" content="The Turducken of Cookies" /&gt; 
     &lt;meta property="og:url" content="http://www.domain.com/activity.php"&gt;
  
     &lt;script type="text/javascript"&gt;
     function postCook()
     {
         FB.api(
           '/me/namespace:cook',
           'post',
           { recipe: 'http://www.domain.com/activity.php' },
           function(response) {
              if (!response || response.error) {
                 alert('Error occured '+ response.error.message); // it shows "Error occured An active access token must be used to query information about the current user." message
              } else {
                 alert('Cook was successful! Action ID: ' + response.id);
              }
           });
     }
     &lt;/script&gt;
   &lt;/head&gt;
   &lt;body&gt;
     &lt;div id="fb-root"&gt;&lt;/div&gt;
     &lt;script&gt;
       window.fbAsyncInit = function() {
         FB.init({
           appId      : 'appID', // App ID
           status     : true, // check login status
           cookie     : true, // enable cookies to allow the server to access the session
           xfbml      : true  // parse XFBML
         });
       };
  
       // Load the SDK Asynchronously
       (function(d){
         var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
         js = d.createElement('script'); js.id = id; js.async = true;
         js.src = "//connect.facebook.net/en_US/all.js";
         d.getElementsByTagName('head')[0].appendChild(js);
       }(document));
     &lt;/script&gt;
  
     &lt;h3&gt;Stuffed Cookies&lt;/h3&gt;
     &lt;p&gt;
       &lt;img title="Stuffed Cookies" 
            src="http://www.domain.com/logo.gif" 
         /&gt;
     &lt;/p&gt;
  
     &lt;br&gt;
     &lt;form&gt;
  &lt;input type="button" value="Cook" onclick="postCook()" /&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>