Instagram Test icon

Instagram Test

🧪 TESTA se suas credenciais, permissões e configurações estão corretas

Instagram Test

AI-generated

Overview

This node, named "Instagram Test," is designed to help users verify and test their Instagram API configurations and credentials. It is useful for checking if the access token and user ID are correct, listing token permissions, retrieving the user's Instagram profile information, obtaining webhook URL and setup instructions, testing access to the Instagram conversations API, and running a full suite of these tests at once. Practical applications include validating API credentials before deploying workflows, ensuring proper permissions are granted, configuring webhooks correctly, and troubleshooting API access issues.

Use Case Examples

  1. Verify if Instagram API credentials (access token and user ID) are valid.
  2. List all permissions granted to the Instagram API token.
  3. Retrieve Instagram profile details such as username, name, and follower counts.
  4. Get the webhook URL and instructions to set up Instagram webhook subscriptions in Meta for Developers portal securely with a verify token configured in credentials setup for real-time updates handling in n8n workflows.

Properties

Name Meaning
Teste Specifies the type of test to execute, such as credential validation, permission listing, profile retrieval, webhook info, conversations API test, or a full test suite.

Output

JSON

  • test - The type of test executed (e.g., credentials, permissions, profile, webhook, conversations, full).
  • status - The result status of the test (e.g., checking, success, error, info).
  • credentials
    • access_token - Partial masked access token used in credential tests.
    • instagram_user_id - Instagram User ID used in credential tests.
    • webhook_verify_token - Webhook verify token from credentials, if configured.
  • checks - Array of individual checks performed during credential validation, including status and error messages if any.
  • permissions - List of permissions and their statuses for the token.
  • profile - Detailed Instagram profile information such as id, username, name, follower count, following count, and media count.
  • webhook
    • url - The webhook URL generated by the node for receiving Instagram webhook events.
    • verify_token - The verify token configured for webhook validation.
  • instructions - Step-by-step instructions for setting up the webhook in the Meta for Developers portal.
  • api_tests - Array of tests performed on the conversations API, including listing conversations, fetching messages, and message details.
  • summary - Summary of test results including total tests, passed, warnings, and failures.

Dependencies

  • axios HTTP client for making API requests to Instagram Graph API

Troubleshooting

  • Ensure that the Access Token and Instagram User ID are correctly configured in the credentials; missing or invalid tokens will cause credential tests to fail.
  • Verify that the token has the necessary permissions such as instagram_business_basic and instagram_business_manage_messages to access conversations API.
  • Make sure the webhook verify token is set in the credentials before configuring the webhook URL in the Meta for Developers portal.
  • Activate the workflow to generate the webhook URL; without an active workflow, the webhook URL will not be available.
  • If API calls fail, check the error messages returned by the Instagram Graph API for details on missing permissions or invalid tokens.

Links

Discussion