title: How to extend facebook access token in python
body: <p>I am using the Python facebook-sdk client library.
  I currently have a short-lived access token obtained from <a href="https://developers.facebook.com/tools/accesstoken/" rel="nofollow">https://developers.facebook.com/tools/accesstoken/</a> that I copy the code from the site into my code for authentication.</p>
  
  <pre><code>       graph = facebook.GraphAPI(access_token)
  </code></pre>
  
  <p>This token however expires after 60-mins. I am looking to extend this to a 60 day-long lived token so that don't need to manually copy in new every time it expires. I can find numerous answers on how to do this in different formats, however not python (or at least not simply without log in page etc.). </p>
  
  <p>[for reference, the code I will be using is only intended for my use, and as such, I am not looking to create a log in page. I just want to be able to extend the token I already have].</p>