This article covers GrowthBooster integration with two social media platforms via Pabbly: Facebook and Instagram in the same workflow. It will allow you to post moments to both platforms simultaneously. You can find articles on setting up standalone integrations here: Facebook Pages, Instagram.
Important: First of all, make sure that your Instagram account is a "business" one, that it is connected to your Facebook account, and that 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 "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. Click on the "Choose what to allow"
On the next screen make sure you've granted access to the business related to your Instagram, to your Instagram account, and to publish photos. Then scroll down and 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 down, and click on the "Add Action Step" round button with a plus sign.
Type "Facebook Pages" in the "Choose app" search input below "App event", and click on "Facebook Pages" in the search results list.
Click in the "Action Event" field and select "Create Multi Image Post" from the dropdown, then click the "Connect" button.
In the "Connect Facebook Pages Account" panel select "Add New Connection", and click "Connect With Facebook Pages".
A new browser window will open. You will need to sign in to your Facebook account, then set up the access level you give to Pabbly. Make sure that the page you want to publish GrowthBooster moments to is selected on the "What Pages do you want to use with Pabbly Connect?" tab, then adjust the access settings and click the "Done" button.
You will return to Pabbly.
Click on the "Images" field, select from the "Insert Data from Previous Step" dropdown "Code by Pabbly" and then the "Output 1".
Click the "Message" 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 Facebook 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.