title: Get Facebook page likes using PHP sdk
body: <p>Im trying to get likes count on my page</p>
  
  <p>This is the code im using but the access token is NULL</p>
  
  <pre><code> $fb = new Facebook\Facebook(array(
     'app_id'  =&gt; 'my_app_id',
     'app_secret' =&gt; 'my_app_secret',
     'default_graph_version' =&gt; 'v2.10'
   ));
  
  $helper = $fb-&gt;getRedirectLoginHelper();
  $access_token = $helper-&gt;getAccessToken();
  
  var_dump($access_token);
  </code></pre>
  
  <p>Im guessing that i need to grant access to the app on my page but im not sure how..</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>well i have done the following</p>
  
  <pre><code>$fbApp = new Facebook\FacebookApp('app_id', 'app_secret');
  $access_token = $fbApp-&gt;getAccessToken();
  $request = new Facebook\FacebookRequest( $fbApp, $access_token , 'GET', '/fan_count');
  </code></pre>
  
  <p>How do i get the fan count from that ?</p>
  
  <p>Thanks</p>