如何从Instagram API获取访问令牌 [英] How to get access token from Instagram API

查看:102
本文介绍了如何从Instagram API获取访问令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在这里遵循Instagram的基本指南

任何帮助或可能的提示将不胜感激,在此先感谢您!

解决方案

我在这里https://developers.facebook.com/docs/instagram-basic-display-api/guides/getting-access-tokens-and-permissions

I added my personal Instagram account as a tester and I got the authorization code, but when I send the request to get the access token, this is my response:

{
    "error_type": "OAuthException",
    "code": 400,
    "error_message": "Missing required field client_id"
}

This is my input in POSTMAN:

Any help or possible tips will greatly be appreciated, thanks in advance!

解决方案

I found the solution to my own question here Impossible to get an access_token for Instagram Basic Display API

When using Postman for Instagram's API, you should fill out the info required under the POST request's Body, NOT the Parameters. And when in the body, just select x-www-form-irlencoded

这篇关于如何从Instagram API获取访问令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆