Is it possible to pass Facebook Graph API access token through request header? -
i testing facebook graph api v2.3 postman. while possible response putting access token in query string follow:
https://graph.facebook.com/v2.3/me?access_token=my_access_token i wondering whether it's possible same thing http request headers, this:
get /v2.3/me http/1.1 host: graph.facebook.com authorization: <my_access_token> cache-control: no-cache postman-token: <postman_token> based on similar question (i.e. how should client pass facebook access token server?) on stackoverflow, seems should possible.
any thoughts on this?
edit:
what raised interest that, when used
api graph explorerprovided facebook developers, seems there's no query string in sandbox either. how work?
facebook api graph explorer use query string access token. @cbroe's response.
yes possible
authorization: oauth accesstokenhere e.g.
curl --header "authorization: oauth caac...zd" https://graph.facebook.com/me
Comments
Post a Comment