title: Facebook: Refreshing long-lived access token automatically
body: <p>I'm storing long-lived access tokens for users of my application that have associated their Facebook accounts to it. Since the demise of the <em>offline_access</em> tokens, these long-lived tokens have an expiry date of "about 60 days." However, they can refresh themselves when the user interacts with Facebook. According to the <a href="https://developers.facebook.com/docs/facebook-login/access-tokens#extending" rel="noreferrer">documentation</a>:</p>
  
  <blockquote>
    <p>These tokens will be refreshed once per day when the person using your app makes a request to Facebook's servers. If no requests are made, the token will expire after about 60 days and the person will have to go through the login flow again to get a new token.</p>
  </blockquote>
  
  <p>What I'd like to know is what constitutes <strong>making a request to Facebook's servers</strong>. Does the user have to log in to the Facebook website, mobile app, or use a Like button somewhere? Or does my application making a request on behalf of the user count as well?</p>
  
  <p>Also, when the tokens are refreshed, are they refreshed for another 60 days? Or are they refreshed for a smaller duration?</p>
  
  <p>I wasn't able to find these specific answers in the documentation or in other questions asked here, so thanks in advance to anyone who might have more details.</p>