Instagram API-通过hashtag获取所有照片

问题描述:

我是这个Instagram API的新手,我阅读了他们关于端点的文档,这是我正在使用的端点:

I am new to this Instagram API, and I read their doc about endpoints, this is the endpoint that I am using:

/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN

它正在获取图像,但是仅在我的帐户照片上.我想要的是,我要给一个标签名,它将显示所有内容,不仅显示我帐户中的照片,还显示Instagram中的所有照片.

It is fetching the images, but, only on my accounts photos. I want is, I will give an tag-name, and it wll display all, not just the photos on my account, but all the photos in Instagram too.

我知道已经很久了,但仅作记录.

I know has been a long time, but just for the record.

因为您需要为此提供public_scope权限(该权限使您可以访问instagram上的所有公共数据,而不仅是您的帐户),因此您的应用需要经过Instagram的审核和批准.但是,如果您将API用于一个站点的个人项目,Instagram将不会批准它.

Since you need the public_scope permission for this (the permission that gives you access to all public data on instagram, and not only your account) you need your app to be reviewed and approved by Instagram. However, if you're using the API for a one-site personal project, Instagram will not approve it.

这是来自Instagram的文档:

Here's from Instagram's docs:

1:哪种用例最能描述您的Instagram集成?

1: Which use case best describes your Instagram integration?

R:我想在我的网站上显示主题标签内容和公共内容.

R: I want to display hashtag content and public content on my website.

A:不支持该用例.我们不同意 一次性项目的public_content权限,例如显示 您网站上基于主题标签的内容.作为替代解决方案,您 可以显示您自己的Instagram内容,或找到提供以下内容的公司 这种类型的服务(内容发现,审核和显示).

A: This use case is not supported. We do not approve the public_content permission for one-off projects such as displaying hashtag based content on your website. As alternative solution, you can show your own Instagram content, or find a company that offers this type of service (content discover, moderation, and display).

您可以在权限查看"文档中找到更多信息.

You can find more information in the Permission Review documentation.