title: Get Facebook Graph API extended access token
body: <p>I can get the posts I need from a Facebook Page using this code in PHP:</p>
  
  <pre><code>$token = "ACCESS_TOKEN";
  $data = file_get_contents("https://graph.facebook.com/PAGE_ID/feed?access_token=".$token);
  $data = json_decode($data, true);
  </code></pre>
  
  <p>However, the access token it just last 1 hour.
  I saw that it's possible to request a long live token that lasts 60 days, but stills not so clear for me with a good example.</p>
  
  <p>Do you guys know a good example using PHP?
  Thank you in advance!</p>