从公共Instagram主题标签获取图像 [英] fetching images from a public Instagram hashtag

查看:110
本文介绍了从公共Instagram主题标签获取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一对即将结婚的夫妇开发一个网站,他们创建了#somehashtag,其他人可以在其中发布图片.我想从该标签中获取所有图像并将其发布在网站上.什么都行不通.理想情况下,我想使用php,但是javascript/jquery可以.

I am developing a website for a couple that are getting married and they created #somehashtag where other people can post images to. I want to fetch all images from that hashtag and post it on the site. Nothing works. Ideally I want to use php, but javascript/jquery would do.

您尝试了什么?答案可能就是一切

What have you tried? The answer is probably everything

  • InstafeedJS 不起作用,什么也没显示
  • 旧的php脚本,即使是从2015年起在SO或其他地方发布的脚本也不起作用,没有任何效果.
  • Php库是古老且不受支持的,甚至是正式的Ruby和Python库!
  • 端点,需要访问令牌,这是一个很长的故事:
  • InstafeedJS doesn't work, nothing shows
  • Old php scripts, even from 2015 posted on SO or elsewhere does not work, nothing works.
  • Php libraries are old and unsopported, even the official Ruby and Python libraries!
  • Endpoints, require ACCESS-TOKEN and that's well, a very long story:

https://api.instagram.com/v1/tags/somehashtag?access_token=API_CLIENThttps://api.instagram.com/v1/tags/somehashtag?access_token=API_SECRET

给予:

{"meta": {"error_type": "OAuthPermissionsException", "code": 400, "error_message": "This client has not been approved to access this resource."}}

现在尝试使用第三方应用程序生成访问令牌,仅生成可以访问我的帐户的令牌,但标签对我而言却不是什么东西,因此,获取令牌时访问令牌将无效.

Now trying to generate an access token using third party apps, only generate tokens that can access my account, but the hashtag is not something for me, so the access token will be invalid when fetching hashtags.

使用instagram生成令牌需要我征求许可,据我所知,如果我错了,以及如果我尝试这样做,我会纠正我

Generating tokens using instagram require me asking for permission, as far as I know, correct me if I'm wrong, and if I try to do that I get

我尝试联系instagram支持,但显然无法联系到他们.

I tried to contact instagram support but they cannot be reached obviously.

推荐答案

您可以使用此链接查看顶部主题标签

you can use this link for view top hashtag

https://www.instagram.com/explore/tags/YOUR_HASHTAG/?__a=1

这篇关于从公共Instagram主题标签获取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆