Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
/ Instagram-as-CDN Public archive

Using Instagram CDN for my static webpage

Notifications You must be signed in to change notification settings

chew-z/Instagram-as-CDN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IG CDN

Simple tool for generating list of my Instagram posts using Instagram Basic API from Facebook as goinsta that I have been using for a few years is now dead.

I am using Instagram media URLs for displaying images on my static webpage, it saves me bandwidth as traffic goes directly from Instagram CDN. It is free and legal for personal webpage [*] [**].

To use build main.go and run it.

Set enviroment variable $IG_TOKEN to your long living token that you can quickly generate from your Facebook developer account.

Then go to localhost:8080/json. Parameter limit (default 20) sets how many Instagram post you will get in json file. Or use curl 'http://localhost:808/json?limit=10' -o instagram.json'

Now you have a json file with signed links to your Instagram media. Use it in your static webpage for images gallery, portoflio etc...

[*] If you're only using the Legacy API to generate tokens in order to display your Instagram Feed on a personal website, you can use the Instagram Basic Display API's User Token Generator to continue generating tokens. The User Token Generator does not require App Review, but it will only work for your owned Instagram accounts (i.e. accounts for which you know the login credentials

[**] Instagram Basic Display API

About

Using Instagram CDN for my static webpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages