0

Instagram now updated its API and now it uses Facebook Graph API. I want to get all the images from my Instagram page in Magento 2.

How can I retrieve it in Magento 2?

It always return :

The access_token provided is invalid.

Any help would be appreciated.

Thanks.

2
  • Not really a Magento 2 specific question, should be split into an Instagram (how do I access instagram api) and Magento 2 (how do I do whatever you want to do with the images) questions
    – eddhall
    Commented Mar 30, 2020 at 9:26
  • Thanks for your suggestion! But, I know very well it's Magento related question or not. I am trying to integrate in Magento store. I also added API code. But, something is wrong in access_token as I thought. Commented Mar 30, 2020 at 9:30

1 Answer 1

0

You can directly get public posts Data JSON by hashtag using below URL.

https://www.instagram.com/explore/tags/<Hashtag>/?__a=1

one of the example URL is https://www.instagram.com/explore/tags/tranding/?__a=1

You can get response in JSON format then you can process it and do whatever you want to do. Weather you can save the data to your database as well as you can only display the data on frontend.

Thank You.

1
  • It's not seems that is api url. Commented Mar 30, 2020 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.