Giter Site home page Giter Site logo

mgp25's Issues

Getting only 100 likers from post

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?

problem with login.

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.

No Updates?

This repository is old version. it will not work unless it uses Ig version of 200+.

Examples

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?

Tag untag

Bro plzz help me how to tag untag in media with loop help plzz brother

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.