-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Found this error when use getTopMediasByTag() and getMediasByTag(). Caching user session #76
Comments
Getting the same error... dumping the $response var seems to be a security check from instagram... to verify that you are logging in to your account... Not sure the way around this |
@javagose and @jonahfuller Could you please check how new version works for you? You don't need to change your code. $instagram = Instagram::withCredentials('PASTE_LOGIN', 'PASTE_PASSWORD', '/path/to/folder/');
$instagram->login(); And you need call This issue will be open until I implement following:
NOTE: Library does not track API limits, so you need adjust request frequency on your own |
So far so good... I'll update if I find any issues. Thanks again for your continued work on this... Library is just what I needed to build my hashtaged photos wall. |
Hello Raym and thank you for your job! |
@pinotarantino strange. What exactly you do? (How many requests you send, how frequently, what is delay time) |
Hello Raiym, Here you are an extract of my code, if this could help you: "... use phpFastCache\CacheManager; Unirest\Request::verifyPeer(false); use InstagramScraper\Instagram ; $instagram = Instagram::withCredentials('pxxxxxx', 'pxxxxxxx', '/var/www/html/socialtool'); Thanks a lot! |
A clarification about SSL: I noticed now that with centOS, if I don't use 'Unirest\Request::verifyPeer(false)', it woks fine. I had the error of issue #63 in a previous project version developed on WAMP server. With Linux/Lamp the problem off SSL doesn't occur. Thaks |
Problem solved if I make the call from the same IP I used when I registered my account on Istagram...;) |
i still get the same error
what i'm trying to build is a website that let users scrapp instagram content, so i build different php files, each file is calling a different Instagram.php Method. for example, getTopMediasByTag.php call getTopMediasByTag(tags), getUserMedias.php calls getMedias(username), getUser.php call getAccount(username) ... etc In each file i use
|
require('autoload.php'); use InstagramScraper\Instagram; $instagram = Instagram::withCredentials('username', 'password', '/cached'); |
After several request (5 request or more) i get this error:
Catchable fatal error: Object of class stdClass could not be converted to string in
C:\xampp\htdocs\instagram\vendor\raiym\instagram-php-scraper\src\InstagramScraper\Instagram.php
on line 519
The text was updated successfully, but these errors were encountered: