Client-Side Short-Lived Tokens vs Server-Exchanged Long-Lived Tokens for Offline Access with Minimal Scopes
Goal: A web application needs to perform periodic data syncs on behalf of users after they close their browser session, using only the public_profile and email scopes granted during login. Constraints: The app secret must never leave the server. Facebook issues short-lived tokens (~1 hour) to the client; exchanging them server-side yields long-lived tokens (