Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何从Instagram API获取媒体_Instagram_Instagram Api_Instagram Graph Api - Fatal编程技术网

如何从Instagram API获取媒体

如何从Instagram API获取媒体,instagram,instagram-api,instagram-graph-api,Instagram,Instagram Api,Instagram Graph Api,我正在尝试从instagram帐户获取媒体,并将其显示在我正在构建的网站上: 基本上我想运行这个查询: https://graph.instagram.com/{userId}/media?fields=id,caption,media_url&access_token=IGQ... 但作为回应,我得到了这个错误: { "error": { "message": "Unsupported get request

我正在尝试从instagram帐户获取媒体,并将其显示在我正在构建的网站上:

基本上我想运行这个查询:

https://graph.instagram.com/{userId}/media?fields=id,caption,media_url&access_token=IGQ...
但作为回应,我得到了这个错误:


{
    "error": {
        "message": "Unsupported get request. Object with ID '31044158025' does not exist, cannot be loaded due to missing permissions, or does not support this operation",
        "type": "IGApiException",
        "code": 100,
        "error_subcode": 33,
        "fbtrace_id": "AOdEf2mCpah6zWwkEdiZU95"
    }
}

我根据官方文档在facebook开发者帐户上创建应用程序,获取访问令牌等

我在instagram上获得了{userId},并从开发人员工具中探索了网络请求(有更简单的方法吗?:D)

感谢您的帮助

谢谢


马特奥

我也有同样的问题,你找到答案了吗?嘿!我找到了一个可以让我的项目继续进行的工作。由于我在盖茨比建立了一个网站,我可以安装这个插件:盖茨比源instagram他们使用一种方式获取公共apy,它对他们有效。。。也许你可以检查插件的代码,并找出如何使用。我想我读过,但现在我忘了。希望能有帮助!我也有同样的问题,你找到答案了吗?嘿!我找到了一个可以让我的项目继续进行的工作。由于我在盖茨比建立了一个网站,我可以安装这个插件:盖茨比源instagram他们使用一种方式获取公共apy,它对他们有效。。。也许你可以检查插件的代码,并找出如何使用。我想我读过,但现在我忘了。希望能有帮助!