Search code examples
facebook-javascript-sdkfacebook-access-token

Facebook JS SDK Token expiration time


Why every time I reload a page of my site (made with JS SDK), Facebook gives me a different Token?

Does token expires in an hour?


Solution

  • From Facebook's documentation:

    User access tokens come in two forms: short-lived tokens and long-lived tokens. Short-lived tokens usually have a lifetime of about an hour or two, while long-lived tokens usually have a lifetime of about 60 days. You should not depend on these lifetimes remaining the same - the lifetime may change without warning or expire early.

    Hope this clarifies things.