Commit f08272e
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 <username>
</code></pre>
</li>
</ol>
</ul></body></html><!--EndFragment-->
</body>
</html>1 parent 12b603f commit f08272e
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
1 | 16 | | |
2 | 17 | | |
3 | 18 | | |
| |||
0 commit comments