If you want to publish moments created with GrowthBooster on your Instagram account, you need to set up an integration with Pabbly Connect.
Important: first of all, make sure that your Instagram account is a "business" one, that it is connected to your Facebook account, and it is connected to a Facebook Page.
First of all, go to pabbly.com and create an account (if you don’t have one). You can set up the integration with a free account, but you may need to switch to a paid account later because the number of runs on a free account is limited.
First of all go to “Pabbly Connect”, and click on the "Access now" button on the "All Apps" page.
Create a new workflow: click on the "Create Workflow" button, specify the name of the workflow, for example, "GrowthBooster->Facebook" and click the "Create" button.
Type "Webhook" in the "Choose app" search input below "App event" and click on "Webhooks" in the search results list.
Copy the webhook URL, switch off the "Simple Response" toggle, and click the "Capture Response" button below the "Webhook URL" input.
Go to the GrowthBooster web-application, open the business you are setting up the integration with, proceed to the "Settings" tab, paste the webhook URL you’ve copied in the previous step to the "Add Zapier webhook" field, and click the "Update" button.
Create at least two new moments in GrowthBooster for your business and approve them for publishing.
Return to Pabbly and wait around 10 minutes, till the “Response received” checkbox appears.
Scroll down, click on the "Choose Your Next Application" block, type "Iterator" in the "Choose app" search input below "App event" and click on "Iterator" in the search results list.
Make sure the "Response" value is selected in the "Choose Array" dropdown and click the "Save & Send Test Request" button.
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Code" in the "Choose app" search input below the "App event" and click on the "Code" in the search results list.
Select the "Run JavaScript (Beta)" from the "Search & select" dropdown, then click on the "Connect" button.
Click in the "JavaScript Code" field, then paste there:
let data = (
Select from the "Select Data from Previous Step" dropdown step 2 "Iterator by Pabbly", then scroll down to the "Images" block and click on it.
Paste in the "JavaScript Code" field the code:
);
let i = 0;
let img = '';
let cover = '';
while (i < data.length)
{
img += data[i].full_url +','; i++;
}
if (img.length > 0)
{
img = img.substring(0, img.length - 1);
cover = data[0].full_url;
}
output = [cover, img];Click on the "Save & Send Test Request" button.
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Filter" in the "Choose app" search input below the "App event" and click on "Filter" in the search results list.
Click on the "Select Label" field, click "Code by Pabbly", then on the "Output 0" value. Select "Contains" in "Filter Type", and enter
https
in the "Value" field, and click "Save & Send Test Request".
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Text Formatter" in the "Choose app" search input below "App event", and click on "Text Formatter" in the search results list.
Click in the "Action Event" field and select "Replace text" from the dropdown, then click the "Connect" button.
Click the "Text" field and select "Iterator by Pabbly" from the "Insert Data from Previous Step" dropdown, then the "Description". Click the "Find" field and type in \r. Click the "Replace" field and type in {{space}}. Click the "Save the & Send Test Request" button.
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Text Formatter" (yes, again!) in the "Choose app" search input below "App event", and click on "Text Formatter" in the search results list.
Click in the "Action Event" field and select "Replace text" from the dropdown, then click the "Connect" button.
Click the "Text" field and select the latest "Text Formatter by Pabbly" from the "Insert Data from Previous Step" dropdown, then the "Result". Click the "Find" field and type in \n. Click the "Replace" field and type in {{space}}. Click the "Save the & Send Test Request" button.
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Text Formatter" (it is the last time!) in the "Choose app" search input below "App event", and click on "Text Formatter" in the search results list.
Click in the "Action Event" field and select "Replace text" from the dropdown, then click the "Connect" button.
Click the "Text" field and select the latest "Text Formatter by Pabbly" from the "Insert Data from Previous Step" dropdown, then the "Result". Click the "Find" field and type in {{space}}{{space}}. Click the "Replace" field and type in {{space}}. Click the "Save the & Send Test Request" button.
Scroll down, and click on the "Add Action Step" round button with a plus sign.
Type "Instagram for Business" in the "Choose app" search input below "App event", and click on "Instagram for business" in the search results list.
Click in the "Action Event" field and select "Publish photo" from the dropdown, then click the "Connect" button.
In the "Connect Instagram for Business Account" panel select "Add New Connection", and click "Connect With Instagram for Business".
A new browser window will open. You will need to sign in to your Facebook account linked to your Instagram Account and allow access.
On the next screen, you will be asked about the permissions, you may customize the permissions by clicking the "Choose what you allow" button. Once you are done, click the "Continue" button.
You will return to Pabbly. Click on the "Instagram Account To Use" field and select the account you want to publish photos at. Click on the "Photo URL" field, select from the "Insert Data from Previous Step" dropdown "Code by Pabbly" and then the "Output 0". Click the "Caption" field and select "Iterator by Pabbly" from the "Insert Data from Previous Step" dropdown, then the "Description".
Click the "Save & Send Test Request" button. The moment will be sent to your Instagram Page.
Scroll up to the top of the page, click the "Dashboard" link, and make sure your workflow is "Active". Congratulations, your moments will be sent to your Instagram.