Please enable / Bitte aktiviere JavaScript!
Veuillez activer / Por favor activa el Javascript![ ? ]
How to solve the "Challenge required" mgp25/instagram-api? - bug-code.com Q&A

How to solve the "Challenge required" mgp25/instagram-api?

0 like 0 dislike
4k views
Hi all.

Implement autorizacao in Instagram with PrivateAPI and extensions from mgp25 - https://github.com/mgp25/Instagram-API.

When you authorize a new IP - insta meets the "Challenge required", which means the need to enter a verification code by SMS or email.

The most complete analysis of problems I found in this issue - https://github.com/mgp25/Instagram-API/issues/2143.

Following this answer (https://github.com/mgp25/Instagram-API/issues/2143... implemented the functionality and now, in the case of response with a request to enter the code - programmatically emulates another request on the phone comes SMS, I insert it (and incorrect entry code causes the error - ie at this point, all true) and I get the message about the successful authentication in the response comes pk of the user and other data.

The problem is that when you re-call the method again I get prompted to enter. Ie library does not save the login succeeded or if something still comes up wrong.

Please help in resolving the issue - a lot of time spent on the search for a solution.

Thanks in advance.
asked by | 4k views

3 Answers

0 like 0 dislike
Look how it is done in other implementations of the API.
answered by
0 like 0 dislike
Hi, did you find the solution to this problem?
answered by (140 points)
reshown by
0 like 0 dislike

try this

-> addPost ('_ uid', $ customResponse ['user_id'])
instead
-> addPost ('_ uid', $ ig-> account_id)

answered by (2.9k points)
Welcome to Bug-code Q&A, where you can ask questions and receive answers from other members of the community.

24.8k questions

46.2k answers

0 comments

12.8k users

24,788 questions
46,220 answers
0 comments
12,801 users