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
874 stars 136 forks source link

First parameter must either be an object or the name of an existing class #356

Open HK50 opened 1 year ago

HK50 commented 1 year ago

Description
how to resolve error "First parameter must either be an object or the name of an existing class" in instagram-user-feed

IrfanPatelDev commented 1 year ago

I am also facing this issue

dnabeast commented 1 year ago

I ran into this problem on my production server. It turned out the API response was telling me I had a bad password. I double checked and the password was fine plus my local server was running without a problem. I think the instagram API was giving the wrong error message but the correct error code 403. I suspect they flagged my IP. I'm not sure if perhaps it's a temporary thing and that I accidentally sent too many calls in a small amount of time, or if they just don't like me.

But the login code wasn't catching that the $query was empty. It just assumed things had gone swimmingly.