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
880 stars 137 forks source link

Exception Occurred Version ^5.0 #58

Closed ssrgspdkt closed 4 years ago

ssrgspdkt commented 4 years ago

Last 2 days it was working properly. Currently Showing as follows/pgrimaud/instagram-user-feed/src/Instagram/Hydrator/HtmlHydrator.php:33 Invalid argument supplied for foreach() (2)

christiaen-francois commented 4 years ago

same to me :( I've upgrade to the new version and it says that my IP is blocked

pgrimaud commented 4 years ago

Damn :/

Which version did you use before upgrade? Are you using cache manger? Are you using login process?

christiaen-francois commented 4 years ago

the version 5.0 just before your last update. Yes the cache manager is used. No login process used.

But 12h later, it seems to work fine ! I didn't make any changes.

christiaen-francois commented 4 years ago

OMG no ....

Fatal error: Uncaught Instagram\Exception\InstagramAuthException: Instagram blocked your IP. .... /vendor/pgrimaud/instagram-user-feed/src/Instagram/Transport/HtmlTransportFeed.php on line 73

pgrimaud commented 4 years ago

In the last version, I catch this error which wasn't catch in the previous one.

Which hosting are you using? Dedicated ?

christiaen-francois commented 4 years ago

I'm on a shared hosting. The website is www.coterue.be and is under development. I don't have any visitors yet. Some time all is right and other time the feed is empty

Capture d’écran 2020-03-31 à 17 47 51 Capture d’écran 2020-03-31 à 17 51 01
pgrimaud commented 4 years ago

Ok, Some people may have the same issue with shared hosting. https://github.com/pgrimaud/instagram-user-feed/issues/45 https://github.com/pgrimaud/instagram-user-feed/issues/46 https://github.com/pgrimaud/instagram-user-feed/issues/47

Is it working on your local environment?

If yes, could you try to create a dummy Instagram account, verify the associated email and try the login method ?

I just updated the README.md with a login process example : https://github.com/pgrimaud/instagram-user-feed#usage-of-version-50

$api = new Instagram\Api();
$api->login('username', 'password'); // optional, may be required on shared hosting
$api->setUserName('coterueheusy');

$feed = $api->getFeed();

print_r($feed);
christiaen-francois commented 4 years ago

I receive the connexion notification email and receive this fallback :

Client error:POST https://www.instagram.com/accounts/login/ajax/resulted in a400 Bad Requestresponse: {"message": "checkpoint_required", "checkpoint_url": "/challenge/17921776/qXZf26UOLN/", "lock": false, "status": "fail"}

pareshsojitra commented 4 years ago

I'm getting error with login process option and I'm using it with cache manager.

Notice: Undefined property: stdClass::$authenticated vendor/pgrimaud/instagram-user-feed/src/Instagram/Auth/Login.php on line 74

Site 1 : Client error: POST https://www.instagram.com/accounts/login/ajax/ resulted in a 403 Forbidden response: {"message": "Please wait a few minutes before you try again.", "status": "fail"}

Site 2: Wrong login / password

adambichler commented 4 years ago

I'm getting error with login process option and I'm using it with cache manager.

Client error: POST https://www.instagram.com/accounts/login/ajax/ resulted in a 403 Forbidden response: {"message": "Please wait a few minutes before you try again.", "status": "fail"}

I'm gettting this error too: Uncaught GuzzleHttp\Exception\ClientException: Client error: POST https://www.instagram.com/accounts/login/ajax/ resulted in a 403 Forbidden response: {"message": "Please wait a few minutes before you try again.", "status": "fail"} in "PATH TO MY GUZZLE FOLDER HERE"

Caching is enabled and I'm using the login method.

pgrimaud commented 4 years ago

Hello, I released a new version (6.0). Could you upgrade to this one?

pwnz22 commented 4 years ago

Undefined property: stdClass::$authenticated

I'm getting this error while using this package on the server. Package version 6.3. Local environment working.

$api = new Api($cachePool);
$api->login(login, pass);

Any suggestions?