instafeed.js 获取特定用户喜欢的媒体列表

instafeed.js to get list of media liked by a specific user

我想收集特定用户喜欢的所有图像。 我有访问令牌。 找不到如何通过 instafeed.js 插件

实现此目的

用于获取用户喜欢的媒体列表的 instagram API 端点仅适用于当前经过身份验证的用户,不适用于任何特定用户。

https://api.instagram.com/v1/users/self/media/liked?access_token=ACCESS-TOKEN

如果那是你想要的,那么instafeed.js目前不支持这个端点:(

好消息是 github 上的 this pull request on the instafeed.js repository 实现了终点。

instafeed.js 的

The owner 尚未将其合并到主存储库/源代码中,但如果您需要此功能,可以下载此提交,或将突出显示的代码合并到本地副本中instafeed.js javascript 文件并尝试一下。

    case "liked":
      if (typeof this.options.accessToken !== 'string') {
        throw new Error("No access token. Use the 'accessToken' option.");
      }
      endpoint = "/users/self/media/liked";
      break;