title: Use php sdk v4 to get 3 or more wall posts to display on website
body: <p>Please I need a working example of a php script, that makes use of the <a href="https://github.com/facebook/facebook-php-sdk-v4" rel="nofollow noreferrer">php sdk v4 for facebook</a>, to pull the most recent wall posts from a user's page. </p>
  
  <p>I've looked around in google and on stackoverflow but most of the examples just show me how to get a login through fb script(which I already have set up on the site I am working on). I did find this <a href="https://stackoverflow.com/questions/27237575/how-do-you-get-me-feed-using-php-sdk-v4">php sdk v4 question</a>, but it left out how to get the access token(also if you can please include how to get an access token that doesn't expire in 60 days). I just started using the sdk today and have no idea how to get started. I have this bit of code which I got from copying and pasting from some of the examples online, but I don't know what to add so that I can get the feed/posts as explained in the linked question.</p>
  
  <pre><code>&lt;?php    
  require_once('facebook-php-sdk-v4/autoload.php');
  
  session_start();
  
  use Facebook\FacebookSession;
  use Facebook\FacebookRequest;
  use Facebook\FacebookRedirectLoginHelper;
  use Facebook\GraphUser;
  
  FacebookSession::setDefaultApplication('xxxxxxxx','xxxxxxxxx');
  </code></pre>
  
  <p>I may be asking for too much, or my question might be to general, but I really just need the example. If asking for the code is too much, please link me to an example online that shows me how to do it. I've also looked at the fb docs but they are very confusing for someone who has never used the sdk before. Thank you, in advance,for any and all help!</p>