gpt4 book ai didi

oauth-2.0 - Instagram oauth api 给出 { "code": 400, "error_type": "OAuthException", "error_message": "No matching code found."}

转载 作者:行者123 更新时间:2023-12-02 19:18:22 25 4
gpt4 key购买 nike

我正在开发一个与 Instagram API 集成来访问用户信息的应用程序。我使用授权 url 成功获取访问 token ,但无法使用 access_token url 获取 userId:

我尝试了两个端点:

https://api.instagram.com/oauth/access_token?client_id=48275564e2c445f6b8e1356djfha3e0c&client_secret=ab2062da9f314e3489dke7ae9cbe6e5d&redirect_uri=http://localhost&grant_type=authorization_code

https://api.instagram.com/oauth/access_token

帖子正文为:

client_id=48275564e2c445f6b8e1356djfha3e0c&client_secret=ab2062da9f314e3489dke7ae9cbe6e5d&redirect_uri=http://localhost&grant_type=authorization_code&code=1351860224.4827556.5dc92c4d15ea4a4ea1b0d33eaf0eef19

(请求中的数据已修改),但我得到以下内容

{
"code": 400,
"error_type": "OAuthException",
"error_message": "No matching code found."
}

我看到了大量的查询和问题,但找不到任何解决问题的方法。

我有几个问题是:

1) is the field code in the URL is same as access_token, if not how could i get the code field's value.

2) is there any other mechanism(API) to fetch the user details given the username is not known.

请帮助我,因为我完全陷入困境并且已经快到了最后期限。

最佳答案

对我来说,在 Instagram 开发者 -> 管理客户端中取消选中禁用隐式 OAuth 解决了问题

关于oauth-2.0 - Instagram oauth api 给出 { "code": 400, "error_type": "OAuthException", "error_message": "No matching code found."},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23886843/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com