title: Facebook PHP SDK 3.0 - How to get my page wall posts at any time?
body: <p>I have been trying to read the news feed from a page that I have using an app that I'm coding.</p>
  
  <p>Now I have had some issues trying to do this using the PHP SDK 3.0.</p>
  
  <p>I am able to get the page information, but this is something that is publicly available any way.</p>
  
  <p>My question is how do I get (read) the page wall posts? I'm assuming I have to grant permissions to my app to post to page, but how do I do this?</p>
  
  <p>currently this is the code that I have</p>
  
  <pre><code>
  $appId = 'XXXXXXXXXXXXXXXXXX';
  $secret = 'YYYYYYYYYYYYYYYY';
  $pageId = 'ZZZZZZZZZZZZZZZZZZ';
  
  $facebook = new Facebook(array(
    'appId'  => $appId,
    'secret' => $secret
  ));
  
  
  $pageProfile = $facebook->api($pageId);
  $pagePosts   = $facebook->api($pageId . '/posts/');
  
  echo 'My Page profile';
  print_r($pageProfile);
  echo 'My Page wall';
  print_r($userPosts);
  </code></pre> 
  
  <p>Under 'My Page wall' I don't get anything. I don't get any errors either.</p>