title: How can I force a facebook access token to expire?
body: <p>I'm doing some testing in the wake of offline_access's expiration.  I think that since all interactions my app makes with Facebook are done via my servers and are user initiated by user activity at several application end points (phone apps, website, desktop application) I can use an Application Access Token to publish to the wall on behalf of my users, assuming the application is still authorized even if the access token I requested during authorization is expired.  That seems to be what the documentation <a href="https://developers.facebook.com/docs/authentication/applications/" rel="noreferrer">here</a> is implying with</p>
  <blockquote>
  <p>Authenticating as an App allows you to obtain an access token which allows you to make request to the Facebook API on behalf of an App rather than a User. [...] App access tokens can also be used to publish content to Facebook on behalf of a user who has granted a publishing permission to your application.</p>
  <p>App Access Tokens generally do not expire. Once generated, they are valid indefinitely.</p>
  </blockquote>
  <p>However, I need to test this.  So I need to expire some tokens.  I tried using official test users which you create in the developer site, that can only interact with your app's sandbox and other users in it, but their tokens seem to be perpetually valid for one hour.</p>
  <p>So I tried using a real facebook user that I created for this, and changing the password which I'd read is supposed to expire the token.  But it doesn't.  The token still reports valid in the debugger and I can still use it for many things, including publishing to my wall.  I can even continue to use this token after logging out of the facebook site completely.</p>
  <p>What gives?  How can I get an expired access_token so that I can test my Application Access Token?</p>
  <p>Edit:  I think it's going to work.  I created my application access token and used the CLIENT-SIDE flow to get an user access token that only lasted 2 hours, so I could actually just wait for it to expire.  After the expiration I used the Graph API explorer to try to post a status update, which failed telling me when my token had expired.  I then tried the same action using my application token which succeeded.</p>