Set up a Facebook Developer Account
Since Instagram is owned by Facebook, you’ll need to create an app through the Facebook Developer platform.
- Visit the Facebook Developer website.
- Log in using your Facebook account.
- If you don’t have a developer account, sign up as a developer.
2. Create a New App
- Go to My Apps on the Facebook Developer dashboard.
- Click Create App.
- Select For Everything Else and choose App Type > None (or select Business if you’re connecting a business account).
- Fill in the necessary details for the app, such as the app name and contact information.
- Click Create App ID.
3. Add Instagram as a Product
- In the left sidebar, go to Add a Product.
- Scroll down to find Instagram and click Set Up.
4. Get Instagram Basic Display Permissions
You’ll need the Instagram Basic Display API to fetch public media.
- On the Instagram product page, click Instagram Basic Display.
- Click Create New App under the Instagram Basic Display section.
5. Set Up Instagram Basic Display
- Add an OAuth Redirect URI. This is a URL that Facebook will redirect to after authenticating. It should be the URL of the service you’re using (e.g., WordPress plugin).
- Configure the required User Token and App Review if needed.
6. Obtain an Instagram User Access Token
- Under the Instagram Basic Display settings, go to User Token Generator.
- Select your Instagram account.
- Generate an access token using the tool provided.