Amazon DynamoDB is a serverless NoSQL database that is highly stable, low latency, and highly scalable. In this guide, we'll show you how to set up the Facebook Lead Ads and DynamoDB integration. Using such a connection, you can ensure that new rows are automatically added to the database based on information from completed Facebook lead forms.

Amazon DynamoDB is part of the Amazon Web Services platform. The database integrates with AWS products, uses encryption, auto-backups, and provides high throughput and low latency. You can efficiently store data in Amazon DynamoDB and use it for a variety of workflows. We'll look at a situation where new leads from Facebook are stored in a DynamoDB database table. All information from completed lead forms is accumulated in one place in a convenient format. It is also worth paying attention to automated services such as Amzwatcher, which will help in the analysis of Amazon affiliate links.

In our example, each new social media hit needs to be transferred to an Amazon DynamoDB table. We propose to fully automate this process. Set up Facebook and Amazon DynamoDB integration and get rid of the following chores:

  • checking the FB advertising account for new leads;
  • uploading data on completed lead forms;
  • adding new records to the database.

You don't need to spend time monitoring your Facebook ad account and use SQL or DynamoDB API to add a lead to the database. Everything will happen automatically.

Facebook and Amazon DynamoDB integration | The item

How to setup Facebook and Amazon DynamoDB integration

To set up the Facebook Lead Ads and Amazon DynamoDB integration, we will use the SaveMyLeads service. This tool allows you to automate the transfer of leads from the FB advertising account to various applications and systems without special skills and knowledge. In our case, the host system will be the Amazon DynamoDB database service.

Integration is created through a web interface. We will set up a data source (Facebook Lead Ads) and a sink (DynamoDB) in sequence. But first you need to register on our website and go to your personal account. In the main window, click the “Create connection” button.

Facebook and Amazon DynamoDB integration | Create connection


The SaveMyLeads service offers a large number of ready-made templates for combining Facebook with various applications. Select "Amazon DynamoDB (Add Row)".

Facebook and Amazon DynamoDB integration | Select the template

Connect Facebook Lead Ads

Click "Connect account Facebook".

Facebook and Amazon DynamoDB integration | Connect FB to SML


Log into your FB account.

Facebook and Amazon DynamoDB integration | Login to FB


Click "Edit settings".

Facebook and Amazon DynamoDB integration | Go to settings


Select the advertising pages you want to work with in the SaveMyLeads system.

Facebook and Amazon DynamoDB integration | Select the ad pages


Check all access checkboxes, they must be enabled.

Facebook and Amazon DynamoDB integration | Check all access checkboxes


Click "OK" — your Facebook account has been added to the SML system.

Facebook and Amazon DynamoDB integration | Click "OK"


Select a connected Facebook account.

Facebook and Amazon DynamoDB integration | Select FB account


Choose ad page and lead form. If you want to upload leads on multiple lead forms, create a separate connection for each of them. When you have decided on all the data source parameters, click “Continue”.

Facebook and Amazon DynamoDB integration | Choose ad page and lead form

Connect Amazon DynamoDB

Click “Connect account Amazon DynamoDB”.

Facebook and Amazon DynamoDB integration | Connect account Amazon DynamoDB


We need to fill in a few fields. First, let's define the value in the "Region" field.

Facebook and Amazon DynamoDB integration | The "Region" field


Log in to your personal Amazon account. The current region can be viewed in the upper right corner. In our case, this is “N.Virginia”.

Facebook and Amazon DynamoDB integration | The current region in Amazon account


Go back to SaveMyLeads and set the "Region" field to the value from your personal Amazon account.

Facebook and Amazon DynamoDB integration | Set the "Region" field in SML


Go to Amazon DynamoDB. We need to create a table that will store leads from Facebook. Click "Create table".

Facebook and Amazon DynamoDB integration | Click "Create table"


In the next window, specify the name of the table, as well as the name and type of the Partition key. Optionally, you can also set the Sort key.

Facebook and Amazon DynamoDB integration | Define name of the table and the Partition key


Scroll down the screen and click "Create table".

Facebook and Amazon DynamoDB integration | Click "Create table"


When the status of the created table becomes “Active”, go to it.

Facebook and Amazon DynamoDB integration | Go to the table


Go to the "Index" tab. Click "Create index".

Facebook and Amazon DynamoDB integration | Create index


Define a Partition key and optionally a Sort key.

Facebook and Amazon DynamoDB integration | Define a Partition key


Scroll down the screen and click "Create index".

Facebook and Amazon DynamoDB integration | Click "Create index"


Now expand the "Actions" list and click "Create item".

Facebook and Amazon DynamoDB integration | Click "Create item"


Create the table attributes that will be used to store the data. Click “Add new attribute”, select type and name.

Facebook and Amazon DynamoDB integration | Adding the attributes


When all required attributes are created, click “Create item”.

Facebook and Amazon DynamoDB integration | Click "Create item"


Now we need to create a group and a user to connect Amazon DynamoDB to the SaveMyLeads service. Find the IAM system through the search bar and go to it.

Facebook and Amazon DynamoDB integration | Go to IAM system


In the "Users" section, click "Add users".

Facebook and Amazon DynamoDB integration | Click "Add users"


Specify the user name, check the box “Access key - Programmatic access” and click “Next: Permissions”.

Facebook and Amazon DynamoDB integration | Specify the user name and check the required box


In the next window, click "Create group".

Facebook and Amazon DynamoDB integration | Click "Create group"


Specify a group name. In the list of policies, find the item “AmazonDynamoDBFullAccess” and check it. Click "Create group".

Facebook and Amazon DynamoDB integration | Specify a group name and check the required policy box


Click "Next: Tags".

Facebook and Amazon DynamoDB integration | Click "Next: Tags"


Click "Next: Review".

Facebook and Amazon DynamoDB integration | Click "Next: Review"


Click “Create user”.

Facebook and Amazon DynamoDB integration | Click “Create user”


The next window contains two keys that need to be transferred to the SaveMyLeads system.

Facebook and Amazon DynamoDB integration | Keys


Complete all required fields to connect Amazon DynamoDB to the SaveMyLeads service. Click "Save".

Facebook and Amazon DynamoDB integration | Complete all required fields in SML


The Amazon DynamoDB account is listed as available. Select it.

Facebook and Amazon DynamoDB integration | Select the Amazon DynamoDB account


Select the DynamoDB table where new Facebook leads will be added.

Facebook and Amazon DynamoDB integration | Select the table


The SaveMyLeads service offers its own way of filling in Amazon DynamoDB fields. To assign a variable yourself, click in the field and select a value from the list.

Facebook and Amazon DynamoDB integration | List of variables


Also check the field types and names. When all required Amazon DynamoDB fields are configured, click "Continue".

Facebook and Amazon DynamoDB integration | Click "Continue"


The next step is to validate the test dataset. If everything suits you, click “Send test data to Amazon DynamoDB”.

Facebook and Amazon DynamoDB integration | Send test data to Amazon DynamoDB


Now go to Amazon DynamoDB and check if the new item is in the table.

Facebook and Amazon DynamoDB integration | The test item

Enable automatic data update

Return to the SaveMyLeads system and click “Finish setup”. This way you will activate the integration and the SML service will start tracking and transmitting new leads to Facebook.

Facebook and Amazon DynamoDB integration | Click "Finish setup"


You can change the connection name through the settings menu (“gear”). You also have the option to add an integration to a specific group.

Facebook and Amazon DynamoDB integration | Connection settings

Result of Facebook and Amazon DynamoDB integration

We set up Facebook and Amazon DynamoDB integration using the SaveMyLeads online connector. Now every new lead from the social network will be automatically added to the DynamoDB database table. Using the SML connector, you can set up automated transfer of data from Facebook to various applications. Send leads to mailing list services, CRM systems, instant messengers, Google services, etc. Automate data transfer. The less time you spend on routine work, the more effectively you will be able to solve really important tasks.