title: Can not authorise user in Facebook JS SDK : "This authorization code has been used." or how to get new authorisation token?
body: <p>I am trying to use Facebook to authenticate users. It works ok except for Ajax calls. Most of the times it just send old token and I get :</p>
  
  <pre><code>{"error":{"message":"This authorization code has been used.","type":"OAuthException","code":100}}
  </code></pre>
  
  <p>So what I tried doing is wrapping every ajax call with </p>
  
  <pre><code>FB.getLoginStatus(function(response) {
          if (response.status === 'connected') {
              return  fn();
              ...
  </code></pre>
  
  <p>this did not worked so I've added : true as parameter to getLoginStatus to prevent caching :</p>
  
  <pre><code>FB.getLoginStatus(function(response) {
          if (response.status === 'connected') {
              console.log('connected');
              fn();
          } else if (response.status === 'not_authorized') {
              console.log('not_authorized);
          } else {
              console.log('not_logged_in');
          }
      },true);
  </code></pre>
  
  <p>Great! Except it is terribly slow. Am I doing something wrong? Can I get new token after each action so I do not need to wait before the next one?</p>
  
  <p>Thanks
  W</p>