title: An active access token must be used to query information about the current user
body: <p>I keep getting the error in the title, while using a simple code:</p>
  
  <pre><code>require_once('sdk/src/facebook.php');
  require_once("AppInfo.php");
  function idx(array $array, $key, $default = null) {
    return array_key_exists($key, $array) ? $array[$key] : $default;
  }
  function he($str) {
    return htmlentities($str, ENT_QUOTES, "UTF-8");
  }
  $facebook = new Facebook(array(
    'appId'  =&gt; AppInfo::appID(),
    'secret' =&gt; AppInfo::appSecret(),
    'sharedSession' =&gt; true,
    'trustForwarded' =&gt; true,
  ));
  
  $arrayForJSON=array();
  $user = $facebook-&gt;getUser();
  $friends = idx($facebook-&gt;api('/me/friends'), 'data', array());
  if ($friends) {
    $arrayForJSON['friends']=$friends;
  }
  print_r($friends);
  </code></pre>
  
  <p>I really don't know how to solve it, I've been searching and trying many answers on stackoverflow</p>