These instructions will guide you through setting up your Instagram Business/Creator account to work with this tool.
-
Make sure your Instagram account is a Business/Creator account, as required by the Instagram Graph API.
-
To convert your personal account to a Business/Creator account:
- Open Instagram and go to your profile.
- Tap the menu icon (☰) and select 'Settings'.
- Tap 'Account' and choose 'Switch to Professional Account'.
- Follow the prompts to complete the setup.
- Link your Instagram Business account to a Facebook Page:
- Go to your Instagram profile settings.
- Tap 'Account' and then 'Linked Accounts'.
- Select 'Facebook' and follow the instructions to link your account.
-
Who Can Do It: Any individual with a Facebook account can create a Facebook Developer Account and subsequently set up a Facebook App. This is not restricted to business account holders.
-
Purpose: The Facebook App acts as a bridge between your software and the Instagram Graph API, allowing you to authenticate and make requests to the API.
-
Process:
- Visit the Facebook Developers website and sign in.
- Create a new app by selecting 'My Apps' > 'Create App'.
- Choose an app type that suits your needs (e.g., 'For Everything Else').
- Fill in the necessary details for your app.
- Configure the Instagram Graph API in your Facebook App:
- In your App's dashboard, navigate to 'Products' and add 'Instagram'.
- Set up the Instagram Graph API settings as required.
(Ignore this step if you are using a Facebook Developer Account that is linked to the Instagram Business/Creator account you want to use with this tool)
- Add your account as a test user for app development purposes:
- In the 'Roles' section of your Facebook App settings, add your Instagram Business account as a test user.
- This step allows access to the Graph API features in development mode.
- Use the Graph API Explorer to generate an access token for your Instagram Business/Creator account:
- In your Facebook App dashboard, navigate to 'Tools' > 'Graph API Explorer'.
- Select your app from the dropdown menu.
- Generate a token.
- In the 'Permissions' tab, select the permissions you want to grant your app:
instagram_basic
. - Click 'Generate Access Token'.
- Copy the access token and save it in the config file in the property
INSTAGRAM_ACCESS_TOKEN
.
-
In the Graph API Explorer, make sure you have the permissions:
pages_show_list
,business_management
,instagram_basic
(you will need these permissions only once to get your Instagram Business/Creator account ID, after this you can just use the basic permissions:instagram_basic
again) -
Generate token. Then, submit the following query:
me/accounts
- Copy the ID shown in the response and use it to do the following query:
{your_id}/?fields=instagram_business_account
- Copy the ID of your Instagram Account shown in the response and save it in the config file in the property
INSTAGRAM_ACCOUNT_ID
.
- Keep any tokens or sensitive information secure.