Search code examples
javascriptfacebookaccount-kit

Refreshing Account Kit access token


I am integrating Facebook's Account Kit to my webapp.

My node.js server exchange the authorization code received by the client to an access token that is valid for 30 days.

I wonder how can I refresh this token without letting the user login again.


Solution

  • Calling the /me endpoint will refresh the access token.

    https://developers.facebook.com/docs/accountkit/graphapi#at-validation