php - 使用 Instagram 基本显示 API 时出现“无效平台应用”错误
问题描述
我正在尝试使用 Instagram 基本显示 API,但是当我发布授权代码以获取访问令牌时,我不断收到以下错误
{“error_type”:“OAuthException”,“code”:400,“error_message”:“无效的平台应用程序”}
我正在遵循此处提到的所有步骤-> https://developers.facebook.com/docs/instagram-basic-display-api/getting-started是的,我正在使用 Instagram 应用程序 ID,它的客户端密码位于Products -> Instagram -> Display
和以下是我发送请求的 URL
"https://api.instagram.com/oauth/access_token?client_id=".$app_id."&client_secret=".$app_secret."&grant_type=authorization_code&redirect_uri=".$redirecturi."&code=".$code,
解决方案
我遇到了同样的问题。问题是我使用的是 Facebook App ID 和 App Secret 而不是 Instagram App ID 和 App Secret。您必须前往 Facebook 开发者网站上的“Instagram 基本显示”部分,然后向下滚动,直到找到 Instagram 应用 ID 和密码。
推荐阅读
- css - 如何用css实现手机上video的width=device的width,电脑上video的width=600px的html
- sql - 如何根据其他列值创建序列
- docker - 我正在尝试在 centos8 vagrantbox 上安装 docker,但遇到错误“下载成功,但校验和不匹配”
- c# - 尝试在迭代中运行 100 个并行任务不起作用
- typescript - 导出类型的打字稿问题
- c# - 使用 DataContractJsonSerializer 序列化时出现 InvalidDataContractException
- c# - jQuery(...).kendoGrid 不是函数
- c++ - 使用 odb 映射原子值时出现错误
- r - 如何通过 R 中的多个子列表运行函数?
- angular - Angular:在日期比较中排除时间