英文:
Why do I have not valid scopes for my instagram oauth request?
问题
关于6个月前,我为客户的网站通过OAuth设置了Instagram的信息流。一切都运行正常,直到他们更改了密码。Instagram似乎不喜欢这个变化,并使令牌过期。现在,我需要重新进行身份验证以获取新的令牌,但当我访问OAuth URL 时,出现以下投诉:
{
"error_type": "OAuthException",
"code": 400,
"error_message": "No valid scopes requested"
}
URL是
https://www.instagram.com/oauth/authorize?client_id=[clientId]&redirect_uri=https%3A%2F%2Fwww..com.au%2F&scope=user_profile%2Cuser_media&response_type=code&logger_id=[loggerId]
(由于某些原因已隐去)。这在过去曾经有效,但现在不再有效。
在Instagram帐户中,我可以看到应用程序在“已过期”下,但我无法删除它以强制建立新的链接。
我该如何解决这个问题?
英文:
About 6 months ago I setup an Instagram feed via oauth for a clients website.
All was working well until they changed their password.
Instagram didn't seem to like this and expired the token.
I now have to re-auth in order to get a new token, however, when I visit the oauth URL it complains with the following
{
"error_type": "OAuthException",
"code": 400,
"error_message": "No valid scopes requested"
}
The URL is
https://www.instagram.com/oauth/authorize?client_id=[clientId]&redirect_uri=https%3A%2F%2Fwww..com.au%2F&scope=user_profile%2Cuser_media&response_type=code&logger_id=[loggerId]
(redacted for reasons..).
This has worked in the past, but no longer does now.
In the Instagram account, I can see the app under Expired
but I can't remove it to force a new link.
How can I solve this?
答案1
得分: 2
你需要在你的Facebook应用程序中请求两个额外的权限(在Instagram基本显示部分),如下图所示:
注意:如果你的应用程序处于开发模式,请记得添加一个测试者。
希望对你有帮助。
祝好,
Nick
英文:
You need to request two addition permissions in your Facebook app (Instagram Basic Display section) as showing in this screenshot:
Note: Remember to add a tester if your app is in the development mode
Hope it helps.
Cheers,
Nick
答案2
得分: 0
我已发送批准表格,针对这里提到的2个权限,Meta回复说:“它不能用作开发者的主要身份验证解决方案。” 但我们用于社交登录的Magento扩展使用这些权限进行身份验证。所以它没有被批准。
英文:
I've send an approval form for the 2 permissions mentioned here and Meta replied that "It cannot be used as a primary authentication solution for developers. " but the Magento extension we use for social login use this permissions for authentication purpose. So it was not approved.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论