title: facebook access token working on one page only
body: <p>My app which was working fine for last 3 months, has encountered a new problem due to some changes in Facebook. When i get access token by:  </p>
  
  <pre><code>$facebook-&gt;getAccessToken();
  </code></pre>
  
  <p>it returns a valid token and fetches user info. But on another page i again use the same function to get access token and i get invalid access token including app Id.
  i tried to get access token and save it to session and use on another page , but it shows an exception <code>OAuthException: An active access token must be used to query information about the current user.</code>
  but token is valid , i have checked it  <a href="https://developers.facebook.com/tools/debug/access_token" rel="nofollow">here</a></p>
  
  <p>may "<a href="https://developers.facebook.com/roadmap/completed-changes/" rel="nofollow">dec 5 , 2012 changes</a>" be the  reason for this?
  i think on my application token is valid for less than a minute.
  Please help me.</p>
  
  <p>code--></p>
  
  <pre><code>$facebook = Yii::app()-&gt;facebook;
  try {
      $facebook_uid = $facebook-&gt;getUser(); 
  
      $accessToken = $facebook-&gt;getAccessToken();
      $fbuser = $facebook-&gt;api('/me');
  
   }catch(Exception $e) {
  
       $access_token = $_SESSION['fb_396582000367255_access_token'];
       $facebook-&gt;setAccessToken($access_token);
   }
  </code></pre>