title: Facebook PHP SDK (v.3.1.1) how to get friends
body: <pre><code>try {
  
    $friends = $facebook-&gt;api('/me/friends');
  
  } catch (FacebookApiException $e) {
  
    error_log($e);
  
  }
  </code></pre>
  
  <p>Shows :Fatal error: Uncaught OAuthException: An active access token must be used to query information about the current user. thrown in C:\wamp\www\fb\facebook_php_sdk\src\base_facebook.php on line 1106</p>