Facebook uses OAuth, and with this protocol you should have an expiration time attribute associated with the token in the headers or response tag.
Thus, you can store it wherever you want the tuple (token, expiry token) to frequently change the request to facebook.
In fact, you should have an answer with these attributes:
{ "access_token": <access-token>, "token_type":<type>, "expires_in":<seconds-til-expiration> }
source share