Instagram API:我想根据标签获取最近的图片,但我只收到自己的图片

问题描述:

我想使用 Instagram API 来获取基于特定标签的最新图片.

I want to use Instagram API to get the latest images based on a specific tag.

当我使用:

https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN

我只接收我的用户使用该标签创建的图像.我想获得所有标记的图像,而不仅仅是我自己的.应该这样做吗?

I only recieve the images that my user has created with that tag. I want to get all tagged images, not just my own. Is it supposed to do that?

当我尝试时:

https://api.instagram.com/v1/tags/{tag-name}?access_token=ACCESS-TOKEN

然后它就起作用了,我不仅可以从我自己的图像中获取统计数据.
任何帮助都会很棒!

Then it works and I get statistics from not just my own images.
Any help would be awesome!

您处于沙盒模式,因此它只会返回来自您的沙盒授权用户的媒体,以下是有关此的信息:

You are in Sandbox mode, so it will return only media from your sandbox authorized user, here is information about this:

再举一个例子,让我们考虑一个端点,它返回一个列表媒体:/tags/{tag-name}/media/recent.这个返回的响应正如预期的那样,端点将仅包含具有给定标签的媒体.但而不是从任何公共 Instagram 用户返回媒体,它会仅返回属于您的沙箱用户的媒体,仅限于每个用户的最后 20 个.

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

这是有关沙盒模式的更多详细信息的链接:https://www.instagram.com/开发人员/沙箱/

Here is the link to more details about Sandbox mode: https://www.instagram.com/developer/sandbox/

一旦您的应用获得批准,您将看到所有媒体.

Once your app is approved, you will see all media.