To access Instagram media on your WordPress website, some plugins can ask for an ‘Access Token’ to get started. Here is a quick guide to generate a new access token.
As of December 4, 2024, Meta is deprecating the Instagram Basic Display API, which means personal Instagram accounts will no longer be able to display their feeds on external websites using this API. To ensure your Instagram feed continues to function seamlessly on your WordPress website, it’s recommended to switch to an Instagram Business or Creator account and utilize the Instagram Graph API.
- Convert to a Professional Account:
- Open the Instagram app and navigate to your profile.
- Tap the menu icon (three horizontal lines) in the top-right corner and select Settings.
- Choose Account and then tap Switch to Professional Account.
- Follow the prompts to select a category and specify whether you’re a Creator or Business.
- Connect to a Facebook Page:
- A Facebook Page is required to access the Instagram Graph API.
- If you don’t have a Facebook Page, create one.
- In the Instagram app, go to your profile, tap Edit Profile, and under Public Business Information, select Page.
- Choose the Facebook Page you want to connect or create a new one.
- Set Up a Facebook Developer Account and App:
- Visit the Facebook for Developers website and log in with your Facebook account.
- Click on My Apps and then Create App.
- Select Business as the app type and provide the necessary details.
- In the App Dashboard, add the Instagram Graph API product.
- Generate an Access Token:
- In your app’s dashboard, navigate to Instagram > Basic Display and configure the settings.
- Add a valid OAuth Redirect URI (e.g.,
https://yourwebsite.com/). - Use the Graph API Explorer tool to generate a User Access Token with the required permissions (
instagram_basic,pages_show_list). - Exchange this token for a long-lived token to ensure longevity.