If you want to publish moments created with GrowthBooster on your Facebook page, you need to set up an integration with Pabbly Connect.
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 "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.
Note: due to the latest changes on Pabbly if you don't see your business page in Pabbly after the connection, you might need to connect your Instagram for Business account to Pabbly first, then reconnect your Facebook account 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 Facebook page as multi-image posts