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

  • SEARCH
  • Home
  • 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 7781097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:07:03+00:00 2026-06-01T19:07:03+00:00

Is it possible to get users extendest tokens via js api? If it isn’t

  • 0

Is it possible to get users extendest tokens via js api?

If it isn’t what about getting multiple users token with single query?

I get tokens like this;

https://graph.facebook.com/oauth/access_token?client_id=xxx&client_secret=xxx&grant_type=fb_exchange_token&fb_exchange_token=".$u[token]

  • 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-01T19:07:05+00:00Added an answer on June 1, 2026 at 7:07 pm

    You can’t issue an ajax request to that url since ajax requests are limited to your domain (cross-domain security policy), but you might be able to use the facebook javascript sdk, though I’m not sure it will work.

    Something like:

    FB.api("oauth/access_token", "get", {
        client_id: xxx,
        client_secret: xxx,
        grant_type: "fb_exchange_token",
        fb_exchange_token: currentToken
    }, function(response) {
        console.log(response);
    });
    

    Even if this works, it’s not something that you should use since you have to include the app secret with the request, and since you want to do so from the client side it means that the app secret won’t really be a secret no more.

    Also, what’s the point of doing that? As long as the user is interacting with your app, you can simply use what it states in Handling Invalid and Expired Access Tokens:

    Desktop Web and Mobile Web apps which implement authentication with
    the Javascript SDK

    Calling FB.getLoginStatus() or ensuring status: true is set when you
    call FB.init() means that the next time a user lands on your
    application and is signed into Facebook, the authResponse object you
    are passed as a result of those calls will contain a fresh, valid
    access token.

    In this case, its simply the act of the user using your application
    which implicitly generates a new access token.

    As for your other question, the facebook api has what’s called Batch Requests, which let you make a few api queries in one request, but I’m not sure that it work for the relative path “oauth/access_token”, but you are welcome to try it.

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

Sidebar

Related Questions

is it possible to get an valid access token for an user via a
Is it possible to get a list of applications installed on the users computer
I would like to know if its possible to get the users location without
Is it possible to build an iOS app that will get user's voicemails ?
Is it possible to get shutdown reason in Windows Server 2008 immediately after user
Is it possible to get design mode to work for templated user controls? I
Is it possible to get the email address which the user has entered? I
Does anybody know, is it possible and how can I get name of user
does anyone know how to (if possible) get the owner of the tag on
I am trying to work out if it is possible get JPA to persist

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.