cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 781 forks source link

Add ability to retry cURL connections if they fail (for any reason). … #195

Open RobWiddick opened 8 years ago

RobWiddick commented 8 years ago

…Fixes issue #194

RobWiddick commented 8 years ago

PSR-2 compliant... whoops.

I will also check over v3 to help out! Thanks!

RobWiddick commented 8 years ago

Pull request now includes fixes for 3 other issues regarding available scopes

RobWiddick commented 8 years ago

I just realized that the last commit may be going into v3.. but this may be good for transitional users.

It's important to note that those new scopes won't work unless the Instagram app itself is upgraded/reviewed. It might be good to put that in the documentation somewhere.

zack-hable commented 7 years ago

@robertark can you please verify that this is still working? I've tried to merge your changes into my own (with added scopes, x-rate-limit fix and added subscription calls from the various other PRs on here) and with your's (even just by downloading your file) gives errors when returning comments/likes.

edit: only affects retrieving comments stdClass Object ( [meta] => stdClass Object ( [error_type] => OAuthAccessTokenException [code] => 400 [error_message] => The access_token provided is invalid. ) )

zack-hable commented 7 years ago

seems this needs to be changed public function getMediaComments($id) { return $this->_makeCall('media/' . $id . '/comments', true); }