Long lived user access token

Default User and Page access tokens are short-lived, expiring in hours, however, you can exchange a short-lived token for a long-lived token.

If you need a long-lived User access token you can generate one from a short-lived User access token. A long-lived token generally lasts about 60 days.

You will need the following:

  • A valid User Access Token

  • Your App ID

  • Your App Secret

App id & secret
User access token

GET https://us-central1-appgregator.cloudfunctions.net/instagram/access-token/

Query Parameters

Name
Type
Description

name*

String

ft-4

client_id*

String

600957674560496

connection_name*

String

insta-ft-4

client_secret*

String

5732d9f01465...

fb_exchange_token*

String

EAAIikVy3mZCABAE4V0KBCK84ddzqfgXoCGQ0uJoyqr5LQZBZCC5Rn0VLCwRCpn4XvVLltxMZAEZAyCyVThbnwnaOdHR3GuQYZCQjH4PxHo8lu1amZAr4jvGo9Qyvj8azftV5RPRwPkQZAGxxSjnu9nF56pGIeRA75ZAPjGZCfI77fxTxuj9mmAfvrowvqijMT4BaZBmqFw1tHIaw6iJuiWAsNiSDm17lFxN5PZBvypknZB92R4rbSwiUZCwPHRE82WEm4oEZBgZD

Headers

Name
Type
Description

x-api-key*

String

43c464439b5507293ba7b315c9875907

{
    "access_token": "EAAIikVy3mZCABAMxVG4bnFssvj5TPUFPaYxI690bVTZBKK6oeuAXiIGTmDN7esIqZCwplXPSsMLPX0vKH60bePt0l33xzBoxaYhIhiafcTMU5hbU6Et9asBUmEnxW51uwRAvDNl1uUOCO6AiG9Hkwz158E7Lra5sTXiokAUD02vjCJwAvQZBW3bYRjFCZBqYZD",
    "token_type": "bearer",
    "expires_in": 5180419
}
curl --location --request GET 'https://us-central1-appgregator.cloudfunctions.net/instagram/access-token?name=ft-4&connection_name=insta-ft-4&client_id=600957674560496&client_secret=600957674560496|NlYvfu75GsFPT5-i04NgpKxftC4&fb_exchange_token=SHORT-LIVED-USER-ACCESS-TOKEN' \
--header 'x-api-key: U2Fsd...'

Last updated