An Instagram gallery with pure JavaScript and CSS Grid
Published on Mar 25, 2020
Instagram
Gallery
As everyone knows Instagram will be replacing his current instagram API by Instagrm graph API on March 31, 2020.
and in this article I will share with you, a JS script that support the Instagram Graph API.
I hope this article will help anyone else who wants to build a simple display of their own Instagram feed.
There’s a ton of ways to get data from URL, but I prefer to Javascript native Fetch API. Here’s a very simple example that simply logs the data, and insert to the DOM.
The CSS code
Once again, we add some styling to our StyleSheet to make our feed look fancy.
Congratulations! You’ve built a Instagram feed (DEMO) to use it in your site.
For more information about Instagram Graph API take a look on official documentation here.