Learn how to add Instagram photos to your NextJS site using the Official Instagram Basic Display API. You can read the full tutorial on Medium.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- A Facebook developer account, and an Instagram public account with some media posted to it.
- A Facebook app linked to your Instagram account, and a token generated through that app.
- Get your Facebook developer account at https://developers.facebook.com/
- Create a new app and link it to your Instagram account
- Generate a token for your Instagram account
- Clone the repo
git clone https://github.com/jrparente/nextjs-instagram.git
- Install NPM packages
npm install
- Create a
.env.localfile and add your NEXT_PUBLIC_INSTAGRAM_TOKENNEXT_PUBLIC_INSTAGRAM_TOKEN=.....;
- Run your app with
npm run dev
- Open your browser and go to
http://localhost:3000
Distributed under the MIT License. See LICENSE.txt for more information.
Joana Parente - @joana_r_parente - jrparente@gmail.com
Project Link: https://github.com/jrparente/nextjs-instagram
