Instragram 重定向 URL 问题 error_message”“无效范围:[]”

发布于 2025-01-16 16:17:42 字数 600 浏览 2 评论 0原文

我假设重定向网址中“#”的问题,因此

编码确实编码了哈希值,所以我使用了 encodeURIComponent("#")

现在 '#' 变成 '%23' 并且 url 看起来像这样

https://www.instagram.com/oauth/authorize?client_id=\&redirect_uri=https://dev.eventify.io/%23/dashboard/content/social& ;scope=user_profile,user_media&response_type=code&state=0&eventid=XXX1141927827XXX

但是我我明白了-->

error_type“OAuthException”

代码 400

error_message “无效范围:[]”

我正在尝试从重定向 URL 获取令牌并获取已登录用户的媒体

I am assuming that the problem with '#' in redirect url so

encode does encode hash so I have used
encodeURIComponent("#")

now '#' become '%23' and url looking like this

https://www.instagram.com/oauth/authorize?client_id=\<CLIENT_ID>&redirect_uri=https://dev.eventify.io/%23/dashboard/content/social&scope=user_profile,user_media&response_type=code&state=0&eventid=XXX1141927827XXX

BUT I AM GETTING THIS-->

error_type "OAuthException"

code 400

error_message
"Invalid scope: []"

I am trying to get token from redirect URL and fetch media of logged user

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文