Comments (1)
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)
- not working HOT 1
- Tag untag
- not working HOT 1
- mgp25/instagram-api Version ? HOT 3
- Examples
- A lot of errors on login: No response from server. Either a connection or configuration error. HOT 4
- Getting only 100 likers from post
- Something went wrong: Requested resource does not exist. upload photo :( HOT 3
- Not working HOT 1
- No Updates?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mgp25.