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]
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:
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:
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.