title: Get Facebook public posts from a page to a php array
body: <p>I just need a code sample that collects public posts from a facebook page to a PHP array.</p>
  
  <p>I've created an APP so I have the App ID/API Key and App Secret.</p>
  
  <p>For example, let's say that I want to get all the stackoverflow public posts from Facebook. I've found out that stackoverflow's facebook page id is '11239244970', but now, how do I get all their public posts?</p>
  
  <pre><code>$appKey = '635000000000874';
  $appSecret = '567xxxxxxxxxxxxxxxxxxxxxxxxxx3e6';
  $fbPage = '11239244970';
  $publicFeed = array();
  </code></pre>