Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Follower/following lists come back empty (query_hash GraphQL returns no edges)

オープン
#331 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

Start from getFollowersOrFollowingGenerator, which still calls graphql/query/?query_hash=37479f2b8209594dde7facb0d904896a (followers) and 58712303d941c6855d4e888c5f0cd22f (following). Read doesUserFollowMe, which already calls /api/v1/friendships/<userId>/followers/ with the x-ig-app-id header, and reuse that request plus next_max_id→max_id paging. Done when follower/following lists return non-empty edges while unfollowNonMutualFollowers, unfollowAllUnknown, unfollowOldFollowed and listManuallyFollowedUsers still iterate all pages — choose page size and pacing carefully to avoid human checkpoints.

索引モデルが issue の本文から書いたものです。

説明

Follower/following lists come back empty (query_hash GraphQL returns no edges)

Version: 1.11.16 (macOS, arm64)

What happens

Since 1.11.16 the profile lookup works again (thanks for the GraphQL fix!), but the bot then finds nobody to follow. The follower list request for a target account returns the follower count, but an empty list and has_next_page: false:

{"data":{"user":{"edge_followed_by":{"count":6269,"page_info":{"has_next_page":false,"end_cursor":null},"edges":[]}}},"extensions":{"is_final":true},"status":"ok"}

So followUserFollowers finishes the target immediately without following anyone. No error is logged, so it looks like the bot is working.

Cause

getFollowersOrFollowingGenerator still uses the old graphql/query/?query_hash=... queries:

  • followers: 37479f2b8209594dde7facb0d904896a
  • following: 58712303d941c6855d4e888c5f0cd22f

Instagram now answers both with "edges": []. The following query is used by unfollowNonMutualFollowers, unfollowAllUnknown, unfollowOldFollowed and listManuallyFollowedUsers, so those likely see an empty list too.

Possible fix

The Followers/Following dialog on instagram.com loads its lists from /api/v1/friendships/<userId>/followers/?count=12&search_surface=follow_list_page (and /following/?count=12), paginated with next_max_id → max_id. doesUserFollowMe already relies on that endpoint. Fetching it from the page with the x-ig-app-id header works in a local patch, but you probably know best what page size and pacing are safe here.

Possibly related

Our account got a "confirm you're human" checkpoint after a run that paged through a large following list via that endpoint (12 per page, a few seconds between pages, during unfollowOldFollowed). It may be unrelated, but it seems worth knowing before choosing page size and pacing.

主要言語
TypeScript
スター
696
フォーク
103
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mifi/SimpleInstaBot のほかの issue

mifi/SimpleInstaBot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。