ryldz07 / mgp25 Goto Github PK
View Code? Open in Web Editor NEWİnstagram mgp25 php api
License: Other
İnstagram mgp25 php api
License: Other
Since this code is no longer available in the original source (https://github.com/mgp25/Instagram-API), I want to use this code which is a copy of it,
but I do not know which version it is.
Which version is it?
Hello
Recent time the internal method $ig->media->getLikers($post->getId());
returns only 100 records.
It's located in the file src/Request/Media.php
.
Is it new limit by Instagram?
Early this function worked fine, I have been get all items, about one thousand and more w/o any problems.
What's happened now?
I understand the lib is abandoned but still.
Have anyone the same issue?
Dear mgp25!
In the last 2 days, there have been a lot of errors: No response from server. Either a connection or configuration error.
Action: $ig->login( $username, $password )
In the src/Client.php in mapServerResponse()
$httpStatusCode is 200
And $rawResponse = " .... html content with Instagram Login page .... "
Do you know why this happens?
Hello
I have problem with login.
when I try to login
$ig = new \InstInstagramAPI\Instagramagram($debug, $truncatedDebug);
try {
$ig->login($username, $password);
} catch (\Exception $e) {
echo 'Something went wrong: '.$e->getMessage()."\n";
exit(0);
}
I alway get this error.
{"message":"error logging attribution","status":"fail"} Something went wrong: InstagramAPI\Response\GenericResponse: Error logging attribution.
not working
This repo is active?
This repository is old version. it will not work unless it uses Ig version of 200+.
For anyone trying to use this from the original code, it was taken down by Instagram. Not shock there.
Here is some working code that can get you started:
<?php
include __DIR__.'/vendor/autoload.php';
require_once 'vendor/mgp25/instagram-php/src/Instagram.php'; //might need to update this if your path is different
$username = 'username'; // create a dummy account that we will login using our spoofing script
$password = 'password'; // your password
$i = new \InstagramAPI\Instagram($username, $password, 'false');
$i->login();
Once your login, now you can call functions from the $i object
$user = $i->searchUsername('NBA');
$user_id = $user['user']['pk'];
$feed = $i->getUserFeed($user_id, $maxid = null, $count = null);
var_dump($feed);
From here you can go into the Instagram.php src file and see all the functions available and just pass the appropriate variables to the function to return the object. From there you can parse the data and do something with it. I messed around with this back in 2016 to do some data scaping. Sadly I am sure some use this to abuse and create IG robots.
You might have to comment out a couple lines of code as Instagram has changed their inbox API calls. In the Instagram.php src file goto line 700 and comment out these lines in the inbox function
public function getv2Inbox()
{
$inbox = $this->http->request('direct_v2/inbox/?')[1];
//if ($inbox['status'] != 'ok') {
// //throw new InstagramException($inbox['message']."\n");
// return;
//}
return $inbox;
}
I know this isn't and issue with the code but if the owner of the account gets this, maybe post it in the readme?
Bro plzz help me how to tag untag in media with loop help plzz brother
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.