I am developing a website for a couple that are getting married and they created #somehashtag
where other people can post images to. I want to fetch all images from that hashtag and post it on the site. Nothing works. Ideally I want to use php, but javascript/jquery would do.
What have you tried? The answer is probably everything
https://api.instagram.com/v1/tags/somehashtag?access_token=API_CLIENT
and https://api.instagram.com/v1/tags/somehashtag?access_token=API_SECRET
Give:
{"meta": {"error_type": "OAuthPermissionsException", "code": 400, "error_message": "This client has not been approved to access this resource."}}
Now trying to generate an access token using third party apps, only generate tokens that can access my account, but the hashtag is not something for me, so the access token will be invalid when fetching hashtags.
Generating tokens using instagram require me asking for permission, as far as I know, correct me if I'm wrong, and if I try to do that I get
I tried to contact instagram support but they cannot be reached obviously.
you can use this link for view top hashtag
https://www.instagram.com/explore/tags/YOUR_HASHTAG/?__a=1