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

public_content is now an Instagram permission #211

Open anchetaWern opened 8 years ago

anchetaWern commented 8 years ago

This breaks existing applications because access tokens obtained through this library are no longer valid. Also, it causes an error when you try to get a new login URL with this:

Instagram::getLoginUrl(['basic', 'public_content'])

Apparently the library doesn't recognize public_content as one of the scopes yet.

Bolandish commented 8 years ago

@anchetaWern Take a look at https://github.com/Bolandish/Instagram-Hashtag-API if you want to query images by hashtags without the public_content permission :)

paulhuisman commented 8 years ago

Experiencing the same issue.. Any updates?

gabrielpires commented 7 years ago

To fix that just look at the Instagram.php file, line 74 and replace the current line for this new one:

private $_scopes = array('basic', 'likes', 'comments', 'relationships', 'public_content', 'follower_list');

And all will work with the $scope parameter when you ask for login url.

Kind Regards,

Gabriel Pires