Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#331 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
696
Fork
103
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mifi/SimpleInstaBot

Tutte le issue di mifi/SimpleInstaBot

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.