此端點允許您重新整理長期Instagram 用戶存取權杖。
不支援執行此作業。
GET /refresh_access_token
重新整理已存在至少 24 小時但尚未失效的長期Instagram 用戶存取權杖。已重新整理的權杖有效時間為自重新整理之日起 60 天。
GET https://graph.instagram.com/refresh_access_token ?grant_type=ig_refresh_token &access_token={long-lived-access-token}
加入下列查詢字串參數,以擴充要求。
索引鍵 | 值 |
---|---|
| 將此設為 |
| 您想要重新整理的有效(尚未到期)長期Instagram 用戶存取權杖。 |
JSON 格式物件,包含下列屬性和數值。
{ "access_token": "{access-token}", "token_type": "{token-type}", "expires_in": {expires-in} }
回應內容
參數值預留位置 | 值 |
---|---|
| 長期 Instagram 用戶存取權杖。 |
|
|
| 此長期權杖到期之前的秒數。 |
curl -X GET \ 'https://graph.instagram.com/refresh_access_token?grant_type=ig_refresh_token&&access_token=F4RVB...'
{ "access_token": "c3oxd...", "token_type": "bearer", "expires_in": 5183944 }
不支援執行此作業。
不支援執行此作業。