Giter Site home page Giter Site logo

problem with login. about mgp25 HOT 1 OPEN

noxzemart avatar noxzemart commented on July 18, 2024
problem with login.

from mgp25.

Comments (1)

RFatBadger avatar RFatBadger commented on July 18, 2024

This code not supported for a long time. Seems instagram changed something in API.

But to be able to login, you could comment line that fails.

File mgp25\instagram-php\src\Instagram.php line 958:
//$this->internal->logAttribution();

/**
   * Sends pre-login flow. This is required to emulate real device behavior.
   *
   * @throws \InstagramAPI\Exception\InstagramException
   */
  protected function _sendPreLoginFlow()
  {
      // Reset zero rating rewrite rules.
      $this->client->zeroRating()->reset();
      // Calling this non-token API will put a csrftoken in our cookie
      // jar. We must do this before any functions that require a token.
      $this->internal->fetchZeroRatingToken();
      $this->internal->bootstrapMsisdnHeader();
      $this->internal->readMsisdnHeader('default');
      $this->internal->syncDeviceFeatures(true);
      $launcherResponse = $this->internal->sendLauncherSync(true)->getHttpResponse();
      $this->settings->set('public_key', $launcherResponse->getHeaderLine('ig-set-password-encryption-pub-key'));
      $this->settings->set('public_key_id', $launcherResponse->getHeaderLine('ig-set-password-encryption-key-id'));
      $this->internal->bootstrapMsisdnHeader();
      //$this->internal->logAttribution();
      $this->account->getPrefillCandidates();
      $this->internal->readMsisdnHeader('default', true);
      $this->account->setContactPointPrefill('prefill');
      $this->internal->sendLauncherSync(true, true, true);
      $this->internal->syncDeviceFeatures(true, true);
  }

from mgp25.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.