Instagram-PHP-API icon indicating copy to clipboard operation
Instagram-PHP-API copied to clipboard

public_content is now an Instagram permission

Open anchetaWern opened this issue 8 years ago • 3 comments

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.

anchetaWern avatar Jun 06 '16 04:06 anchetaWern

@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 :)

Bolandish avatar Jun 07 '16 13:06 Bolandish

Experiencing the same issue.. Any updates?

paulhuisman avatar Sep 16 '16 09:09 paulhuisman

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

gabrielpires avatar Nov 09 '16 01:11 gabrielpires