picardo
picardo

Reputation: 24896

The serverside access token vs clientside access token in Facebook API

My users need to login using the serveside flow, but I want the to upload videos and images directly to Facebook without going through my servers.

Is it possible to use the access token obtained using the serverside flow for activities using the Facebook javascript library?

Upvotes: 0

Views: 510

Answers (2)

Sahil Mittal
Sahil Mittal

Reputation: 20753

Yes you can. The access token has nothing to do with the JS/PHP SDK.

Upvotes: 1

avs099
avs099

Reputation: 11227

yes, sure - it will be the same token - "server side" is just a different way of getting it. You will need to communicate that token to the client-side somehow - but that totally depends on your programming language, environment etc.

See here: https://developers.facebook.com/docs/facebook-login/access-tokens/ - scroll to the "Tokens are Portable" section for the proof.

Upvotes: 3

Related Questions