Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8003471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:39:31+00:00 2026-06-04T16:39:31+00:00

Facebook docs : Facebook Platform supports two different OAuth 2.0 flows for user login:

  • 0

Facebook docs:

Facebook Platform supports two different OAuth 2.0 flows for user login: server-side (known as the authentication code flow in the specification) and client-side (known as the implicit flow). The server-side flow is used whenever you need to call the Graph API from your web server. The client-side flow is used when you need to make calls to the Graph API from a client, such as JavaScript running in a Web browser or from a native mobile or desktop app.

What is the difference between access tokens taken by these flows?
It seems like they length differ.

Can we use server-side flow token on a client? And otherwise, can we use client-side flow token on a server?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:39:32+00:00Added an answer on June 4, 2026 at 4:39 pm

    Currently, Facebook says this about access_tokens. On Server-side OAuth

    if the access_token is generated from a server-side OAuth call, the
    resulting access_token will have the longer expiration time by
    default
    . If the call is made while there is still a valid long-lived
    user access_token for that user, the returned user access_token from
    this second call may be the same or may have changed, but in either
    case the expiration time will be set to a long expiration time.

    Where as client-side OAuth flow will give you a existing, non-expired, short-lived user access_token. To make this access_token long lived, facebook is providing a new endpoint that exchanges the short lived access_token with an access_token with longer life. The endpoint is

    https://graph.facebook.com/oauth/access_token?             
        client_id=APP_ID&
        client_secret=APP_SECRET&
        grant_type=fb_exchange_token&
        fb_exchange_token=EXISTING_ACCESS_TOKEN 
    

    Also please note that

    Currently the long-lived user access_token will be valid for 60 days
    while the short-lived user access_tokens are currently valid from 1 to
    2 hours.

    Excerpt from https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Facebook has two flows for Authentication, client-side and server-side. When should each one be
I've been following the guide here: https://developers.facebook.com/docs/authentication/ Once I have the server-side flow section
I'm trying to code with the facebook API here it says : http://developers.facebook.com/docs/authentication/javascript to
I followed http://developers.facebook.com/docs/authentication and got the access_token of a user. Now, I want to
from facebook docs it says: You can post a score or a user by
Found on JavaScript SDK http://developers.facebook.com/docs/reference/javascript/ ... Asynchronous Loading -------------------------------- This code loads the SDK
For Facebook fbml Apps Facebook is sending in a signed_request parameter explained here: http://developers.facebook.com/docs/authentication/canvas
How did the 'state' come into GET at facebook auth at http://developers.facebook.com/docs/authentication/ ? At
All i see is birthday/email at at http://developers.facebook.com/docs/reference/api/user/ Is there a way to get
This is the code from the canvas tutorial http://developers.facebook.com/docs/appsonfacebook/tutorial/ This gets the authorization code,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.