From e0ab71916240af6365fce552d1922179d9993640 Mon Sep 17 00:00:00 2001 From: Jai Date: Wed, 21 Mar 2018 16:23:53 +0530 Subject: [PATCH] The API seems to have changed updating user.media to user.edge_owner_to_timeline_media --- examples/gatsbygram/scrape.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gatsbygram/scrape.js b/examples/gatsbygram/scrape.js index 78cdbc400109a..e841498086951 100644 --- a/examples/gatsbygram/scrape.js +++ b/examples/gatsbygram/scrape.js @@ -76,7 +76,7 @@ const getPosts = maxId => { posts.push(item) }) - const lastId = get(body, `user.media.page_info.end_cursor`) + const lastId = get(body, `user.edge_owner_to_timeline_media.page_info.end_cursor`) if (posts.length < 100 && lastId) getPosts(lastId) else saveJSON() })