Skip to content

Instantly share code, notes, and snippets.

@madmaxlax
Created May 20, 2020 15:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save madmaxlax/e73aac5e7f4cf9c89f3e0688d98f58c3 to your computer and use it in GitHub Desktop.
Save madmaxlax/e73aac5e7f4cf9c89f3e0688d98f58c3 to your computer and use it in GitHub Desktop.
{
"info": {
"_postman_id": "cedf189c-0537-4ea3-bfe6-63aa6f208e4e",
"name": "Facebook",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get a Long-lived User Access Token",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=<your-app's-ID>&client_secret=<your-app's-secret>&fb_exchange_token=<your-short-term-user-token-generated-from-graph-explorer>",
"protocol": "https",
"host": [
"graph",
"facebook",
"com"
],
"path": [
"oauth",
"access_token"
],
"query": [
{
"key": "grant_type",
"value": "fb_exchange_token"
},
{
"key": "client_id",
"value": "<your-app's-ID>"
},
{
"key": "client_secret",
"value": "<your-app's-secret>"
},
{
"key": "fb_exchange_token",
"value": "<your-short-term-user-token-generated-from-graph-explorer>"
}
]
}
},
"response": []
},
{
"name": "Get a Page Access Token",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://graph.facebook.com/yourpagename?fields=access_token&access_token=<your-long-term-user-token-goes-here>",
"protocol": "https",
"host": [
"graph",
"facebook",
"com"
],
"path": [
"thesistersbrewery"
],
"query": [
{
"key": "fields",
"value": "access_token"
},
{
"key": "access_token",
"value": "<your-long-term-user-token-goes-here>"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment