pgrimaud / instagram-user-feed

This is a scrapper to easily fetch any feed and interact with Instagram (like, follow, etc.) without OAuth for PHP.
MIT License
882 stars 138 forks source link

Unable to extract JSON data #339

Closed scuculeac-plenty closed 2 years ago

scuculeac-plenty commented 2 years ago

Version(s) affected: 1.16.3

Description
I've installed locally the module, it works perfectly but when i move it to web (production) it doesn't work anymore. the code used is this one

try {
            $api = new Api($cachePool);
            $api->login('morethanatripmail@gmail.com', 'Parola2014');

            $profile = $api->getProfile('_morethanatrip_');

              $instaImages = $this->printMedias($profile->getMedias());

        } catch (InstagramException $e) {
            print_r($e->getMessage());
        } catch (CacheException $e) {
            print_r($e->getMessage());
        }

The eror seems to be "Unable to extract JSON data"

Does anyone knows what to do?

Thank you

scuculeac-plenty commented 2 years ago

Any help here @pgrimaud ? Thanks!

scuculeac-plenty commented 2 years ago

Apparenlty on production (not as a subdomain it is working.) Thank you, i will close this one