title: Information about current user in facebook
body: <p>I am trying to get facebook userid of the users currently logged in.
  I used this below piece of code ang got error "Uncaught OAuthException: An active access token must be used to query information about the current user"</p>
  
  <pre><code>require '../src/facebook.php';
  $facebook = new Facebook(array(
    'appId'  =&gt; '226668060741665',
    'secret' =&gt; 'secret key',
  ));
  
  $rr=$facebook-&gt;getAccessToken();
  
  $params = array(
  'access_token' =&gt; $rr,
  'installed' =&gt; 'true',
  'permissions' =&gt; 'read_stream,publish_stream'
  );
  $eded=$facebook-&gt;api("/me/", "GET", $params);
  </code></pre>
  
  <p>I tried to use <code>Facebook::getLoginStatusUrl()</code> but didnt get what it return.
  If i can use above function, please tell me how to get id of current logged in user and How can I use return value of <code>Facebook::getLoginStatusUrl()</code></p>
  
  <p>Thanks in advance</p>