Tag: instagram

Instagram的API – 无法获得接受跟踪请求的私人用户的媒体

我在应用程序中使用Instagram API来查看其他Instagram的照片。 如果一个Instagram账号是私人的,那么这些照片就不能被看到,这是有道理的。 但是,如果这个私人Instagram已经接受了请求他们媒体的用户(访问令牌)的请求,那么这个媒体应该是可用的(对吗?),但是在提出请求时我仍然收到错误。 我正在使用这个请求端点: https://api.instagram.com/v1/users/PRIVATE_PROFILE_ID/media/recent/ ?access_token=ACCESS_TOKEN_OF_USER_THAT_IS_ALLOWED_TO_FOLLOW_PRIVATE_PROFILE 不pipe请求的访问令牌是否具有遵循该configuration文件的权限,API是不是授予访问私人configuration文件的简单情况? 这里也提到了一个类似的问题,但没有真正回答

如何在NodeJS中获取Instagram用户名和权限

我正在使用Instagram的护照login到我的应用程序。 如何在用户login后获取用户名和访问令牌? 我无法访问中间件部分中的“configuration文件”。 //serialize user in the session passport.serializeUser(function (user, done) { done(null, user); }); //deserialize user in the session passport.deserializeUser(function (id, done) { User.findById(id, function (err, user) { done(err, user); }); }); //callback after successfull login of instagram exports.callback = function (req, res) { // Successful authentication, redirect home. console.log('calling'); var code = req.query.code; […]

Instagram的新API,通过标签获取项目

上个月,Instagram的API被更新,我不明白如何使用它。 例如,我想通过标签nexus5x获取图像。 我请求https://api.instagram.com/v1/tags/nexus5x?access_token=access_token 和回应是 200“{”meta“:{”code“:200},”data“:{”media_count“:5066,”name“:”nexus5x“}} 你能解释我下一步该做什么吗? 我也试过得到最近的项目 https://api.instagram.com/v1/tags/nexus5x/media/recent?access_token=access_token 但得到这个回应 200“{”pagination“:{”deprecation_warning“:”next_max_id and min_id are used for this endpoint; use min_tag_id and max_tag_id instead,“},”meta“:{”code“:200}”data“:[]} 在沙盒PS应用程序。

Instagram无法访问回拨url

我有一个奇怪的问题,Instagram不会允许我订阅更多的标签。 我昨天订阅了3个标签没有任何问题,我今天试着用新的标签,没有任何效果。 其他人有同样的问题吗? 我不断收到APISubscriptionError代码400无法访问callbackURL,但该URL是全局访问的,即使是Instagram每5分钟调用一次我昨天添加的标签。 有任何想法吗?

通过标签和时间范围查询Instagram的post

我试图通过提供哈希标签和时间范围(自和直到date)从Instagram查询post。 我使用最近的标签端点 。 https://api.instagram.com/v1/tags/{tag-name}/media/recent?access_token=ACCESS-TOKEN 我的代码是使用instagram-node库在Node.js中编写的(请参阅行内注释): // Require the config file var config = require('../config.js'); // Require and intialize the instagram instance var ig = require('instagram-node').instagram(); // Set the access token ig.use({ access_token: config.instagram.access_token }); // We export this function for public use // hashtag: the hashtag to search for // minDate: the since date // […]