Instagram - Meta

Instagram - Meta

Instagram API enables businesses to communicate with their customers through Instagram. It allows businesses to send messages, receive messages, and automate certain aspects of customer communication.

Provider

The first step to integrate Instagram with uContact will be creating the provider.

Professional Instagram account is required.

Log into uContact with a user with permissions to create SMS providers.

Then we go to Administrator → Providers → SMS

image-20251216-144421.png

 

Select Instagram from the list of providers and complete the field Name:

  • Name
    To identify the provider

  • Messages per second: Limit of messages that will be sent by this provider per second.

Messages per second If it is 0, it does not limit the number of messages that can be sent per second.

  • Receive interactions from comments: This configuration lets uContact create interactions from Instagram post comments. The first reply to interactions started by a comment uses Instagram's private-reply function. Note that private-reply allows only one message until the client responds. Also, if a recipient does not follow the connected Instagram page, the private-reply message will arrive in the requests inbox.

GIFs in comments will not be displayed in uContact due to limitations of the Meta API. However, these comments will still generate interactions.

To receive interactions created from Instagram post comments, the permission Access and manage comments must be granted.

You need to press the “Save” button, and a new window will open where you must log in with your professional Instagram account by clicking the button. You must accept the requested permission, and the provider will be successfully created.

 

image-20251216-145214.png

 

After connecting to uContact, manage granted permissions in Instagram under Settings → Website Permissions → Apps and Websites.

Campaign

  • Select a Instagram provider.

  • Put any text in the port field. (To avoid the error for missing fields) the correct port will be updated after adding the campaign.

Remember to add members to the campaign.

Type of Messages

The following types of messages are supported:

  • Text

  • Audio

  • Images

  • Videos

  • Gifs

  • Emojis

 

NGINX

location /Integra/resources/instagram/ { proxy_pass http://localhost:8085; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /api/inbound/instagram/webhook { rewrite ^/api/inbound/instagram/webhook(.*)$ /Integra/resources/instagram/webhook$1$is_args$args last; } location /api/inbound/instagram/activateCampaign { rewrite ^/api/inbound/instagram/activateCampaign(.*)$ /Integra/resources/instagram/activateCampaign$1$is_args$args last; }