Skip to content

Commit f08272e

Browse files
authored
Fix: instagram version endpoint error (#265)
<html> <body> <h2>Fix Instagram checkpoint_required error due to deprecated app version</h2> <h3>Problem</h3> <p>Login and API calls were failing with:</p> <pre><code>checkpoint_required checkpoint_url: https://i.instagram.com/web/unsupported_version/ </code></pre> <p>Instagram deprecated the app version (<code>222.0.0.13.114</code>) that <code>instagram-private-api</code> emulates. When Instagram forces old app versions to upgrade, all sessions using that version get blocked.</p> <h3>Solution</h3> <p>Updated the emulated Instagram app version in <code>instagram-private-api</code>:</p> Field | Old | New -- | -- | -- APP_VERSION | 222.0.0.13.114 | 347.0.0.43.109 APP_VERSION_CODE | 350696709 | 614918025 <h3>Changes</h3> <p>Updated <code>.patches</code> file:</p> <pre><code class="language-diff">-exports.APP_VERSION = '222.0.0.13.114'; -exports.APP_VERSION_CODE = '350696709'; +exports.APP_VERSION = '347.0.0.43.109'; +exports.APP_VERSION_CODE = '614918025'; </code></pre> <h3>After Merging</h3> <p>Users will need to:</p> <ol> <li> <p>Apply the patch:</p> <pre><code class="language-bash">npm ci </code></pre> </li> <li> <p>Delete existing sessions:</p> <pre><code class="language-bash">rm -rf ~/.instagram-cli/users/ </code></pre> </li> <li> <p>Re-login:</p> <pre><code class="language-bash">instagram-cli login -u &lt;username&gt; </code></pre> </li> </ol> </ul></body></html><!--EndFragment--> </body> </html>
1 parent 12b603f commit f08272e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

patches/instagram-private-api+1.46.1.patch

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
diff --git a/node_modules/instagram-private-api/dist/core/constants.js b/node_modules/instagram-private-api/dist/core/constants.js
2+
index d4485a0..295427d 100644
3+
--- a/node_modules/instagram-private-api/dist/core/constants.js
4+
+++ b/node_modules/instagram-private-api/dist/core/constants.js
5+
@@ -1,8 +1,8 @@
6+
"use strict";
7+
Object.defineProperty(exports, "__esModule", { value: true });
8+
exports.WEBHOST = exports.HOST = exports.WEB_HOSTNAME = exports.HOSTNAME = exports.BLOKS_VERSION_ID = exports.FACEBOOK_ORCA_APPLICATION_ID = exports.FACEBOOK_OTA_FIELDS = exports.FACEBOOK_ANALYTICS_APPLICATION_ID = exports.LOGIN_EXPERIMENTS = exports.EXPERIMENTS = exports.SIGNATURE_VERSION = exports.BREADCRUMB_KEY = exports.SIGNATURE_KEY = exports.APP_VERSION_CODE = exports.APP_VERSION = void 0;
9+
-exports.APP_VERSION = '222.0.0.13.114';
10+
-exports.APP_VERSION_CODE = '350696709';
11+
+exports.APP_VERSION = '347.0.0.43.109';
12+
+exports.APP_VERSION_CODE = '614918025';
13+
exports.SIGNATURE_KEY = '9193488027538fd3450b83b7d05286d4ca9599a0f7eeed90d8c85925698a05dc';
14+
exports.BREADCRUMB_KEY = 'iN4$aGr0m';
15+
exports.SIGNATURE_VERSION = '4';
116
diff --git a/node_modules/instagram-private-api/dist/entities/direct-thread.entity.d.ts b/node_modules/instagram-private-api/dist/entities/direct-thread.entity.d.ts
217
index 93eb781..2cadf27 100644
318
--- a/node_modules/instagram-private-api/dist/entities/direct-thread.entity.d.ts

0 commit comments

Comments
 (0)