jlobos / instagram-web-api

🤳 Instagram Private Web API client for Node
https://npmjs.com/instagram-web-api
MIT License
1.12k stars 185 forks source link

Broken getStoryReels method #90

Open realinstadude opened 5 years ago

realinstadude commented 5 years ago

Method getStoryReels is broken!

Fixed method sample:

  async getStoryReels({
    reelIds = [],
    tagNames = [],
    locationIds = [],
    precomposedOverlay = false
  } = {}) {
    return this.request('/graphql/query/', {
      qs: {
        query_hash: 'a22a50ce4582220909e302d6eb84d259',
        variables: JSON.stringify({
          reel_ids: reelIds,
          tag_names: tagNames,
          location_ids: locationIds,
          highlight_reel_ids:[],
          precomposed_overlay: precomposedOverlay,
          show_story_viewer_list: true,
          story_viewer_fetch_count: 50,
          story_viewer_cursor: ''
        })
      },
      headers: {
        'x-ig-app-id': 936619743392459,
        referer: baseUrl + '/' + this.latestName + '/',
        'x-instagram-gis': await this._getGis(`/${this.latestName}/`)
      }
    }).then(data => data.data.reels_media)
  }
mcmgcls commented 4 years ago

still not working after using this.