Skip to content
Christian Metz edited this page Oct 4, 2013 · 3 revisions

Update: This issue has been fixed with version 1.9.


If you intend to use the Instagram class in a local dev environment, you might experience an error with localhost:

Notice: Trying to get property of non-object in C:\xampp\htdocs\works\instagram\index.php on line 12
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\works\instagram\index.php on line 12

This can be solved by adding the following options to cUrl in the _makeCall() method:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

Thanks @petethecat for pointing out the issue with cURL.

Clone this wiki locally