Settings

Manage your API settings for integrated services.

API Credentials
Enter your Meta App credentials here to enable automatic long-lived token generation.
Manual Posting Credentials
Credentials for manual and scheduled posting are now managed on the Accounts page.
How to Get Credentials
Follow these steps to get the necessary IDs and Tokens for your Instagram accounts.

1. Meta App ID & App Secret

Create an app in the Meta for Developers console. Choose 'Other' then 'Business' as the app type. Once created, go to App Settings > Basic to find your App ID and App Secret. You will also need to add a 'Redirect URL' for the login flow later, but for now, you can use a placeholder like `https://localhost/`.

2. User Access Token (Short-Lived)

Go to the Meta Graph API Explorer. Select your newly created Meta App from the dropdown. On the right, under 'Permissions', select `instagram_basic`, `instagram_content_publish`, and `pages_show_list`, then click 'Generate Access Token'. This is the initial short-lived token.

3. Instagram Account ID

After getting your token, use the same Graph API Explorer. In the query field, enter me/accounts?fields=name,connected_instagram_account{id,name,username} and submit the request. This works for both Business and Creator accounts. The API will return a list of your Facebook Pages and any connected Instagram accounts. Find the Instagram account you want to use and copy its `id`. This is your **Instagram Account ID**.

4. Find the Correct ID in the Response

The response may contain multiple IDs. It is crucial to use the ID nested inside the `connected_instagram_account` object.

{
  "data": [
    {
      "name": "Your Facebook Page Name",
      "connected_instagram_account": {
        "id": "178...",  // <-- ✅ USE THIS ID
        "name": "Your IG Account Name",
        "username": "your_ig_username"
      },
      "id": "123..." // <-- ❌ DO NOT use this top-level ID. This is for the Facebook Page.
    }
  ],
  ...
}