检索instagram图像-获取拒绝访问的消息 [英] retrieve instagram images- get access denied message

查看:62
本文介绍了检索instagram图像-获取拒绝访问的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已创建了一个应用程序,用于从Twitter休息供稿中检索instagram图片.

通常它可以工作,但偶尔会从Instagram CDN收到拒绝访问"消息.

例如

http://distilleryimage2.s3.amazonaws.com/b6c991f4d9bd11e2b9> /p>

有人知道避免这种情况的方法吗?

我正在为该应用程序使用Adobe AIR.

解决方案

instagram图像网址可以在s3上移动,更改或删除.您不能回避此问题,但是可以执行以下操作之一:

  1. 订阅您感兴趣的用户/标签并相应地处理更新.
  2. 建立一种轮询机制来定期更新您的数据以补充#1

此外,我还观察到了将供稿设为私有的用户的情况.我相信,如果他们批准或您可以使用其OAuth令牌对他们进行身份验证,则可以关注他们.有趣的是,如果您知道它们已使用的标签,则标签端点根本不会尊重此隐私.

Have created an app to retrieve instagram images from a Twitter rest feed.

Normally it works but occassionally get an 'access denied' message from the Instagram CDN.

For instance

http://distilleryimage2.s3.amazonaws.com/b6c991f4d9bd11e2b9fd22000a9f4dd4_7.jpg

Does anyone know a way to circumvent this?

Am using Adobe AIR for the app.

解决方案

The instagram image urls can get moved around on s3, changed, or deleted at any time. You cannot circumvent this, but rather you can do one of the following:

  1. Subscribe to the user/tag you are interested in and process the updates accordingly.
  2. Build a polling mechanism to periodically update your data to supplement #1

Also, I've observed this happening for users who make their feed private. I believe you can follow them to get access if they approve or you're able to authenticate them using their OAuth token. Interestingly, if you know a tag that they've used, the tag endpoints don't respect this privacy at all.

这篇关于检索instagram图像-获取拒绝访问的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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