Facebook Leads
  • 2 Minutes to read
  • Dark
    Light

Facebook Leads

  • Dark
    Light

Available Endpoints

All available endpoints from the Facebook Leads API are listed here.

How to Create a Facebook Leads Data Source

  1. Sign in to your Dataddo account and click on Sources at the top of the page.

  2. Click on Create Source in the top right corner.

  3. From the list of sources, choose Facebook Leads. You can type the name of the connector into the search bar to find it faster.

  4. From the drop-down menu, choose your Account connected to Dataddo, and then select Lead Form. Click on Next to continue with the setup.
    Facebook Leads - account

    1. Didn't find your account?
      If you want to connect a new account that is not on the list, click on Add new Account at the bottom of the drop-down. You will be redirected to the authorization/sign-in page to confirm the right account. Once you confirm, you will be redirected back to the Dataddo app.
    2. Authorize Your Account
      If you have not authorized your Account with Dataddo, click on Add new Account and you will be redirected to the authorization/sign-in page.
    3. After you log in and give Dataddo the necessary permissions to access your data, you will be redirected back to the connector.
  5. Choose a name for your Data Source, select the Attributes, and the Maximum number of leads. To continue to the next page, click Next
    Facebook Leads - metrics

  6. Configure your snapshotting preferences by choosing your Sync frequency. Under Advanced settings you can selec the exactTime, of synchronization. Confirm your setup by clicking on Next.
    If the Data range is available to select, you can load historical data. Read more in our guide.

  7. Before saving the source, you can see a preview of your data by clicking on the Preview button. you can adjust the date range to a more specific view.
    Also, you can see the full list of the metrics you selected by clicking on Show all Metrics and attributes, in the left navigation.
    Data source - create - preview

  8. Click on Save and your new Data Source is ready.

Congratulations, your new Data Source is ready!


Troubleshooting

Broken View / Error Message

If you cannot see a preview of your data, go back a few steps and check your setup. The most common causes are:

  • Date range - we recommend a smaller date range. If you need to load historical data, check our guide.
  • Invalid metrics, attributes or breakdowns, or their combination - you may not have any values for them.
    Data source -create- error

Authorization Error

If your Facebook Source is broken you can look into the log for an error.

  1. Go to Sources , click on the three dosts and chooseTest Extraction.
  2. Look for the error below in the detail log:
  3. Go to Connected Services to re-auhtorize the service (Facebook).
  4. Restart the broken sources by clicking on Manual Data Load icon next to the source.
"response_status": "401 Unauthorized"
"Www-Authenticate": "OAuth \"Facebook Platform\" \"invalid_token\" \"You cannot access the app till you log in to www.facebook.com and follow the instructions given.\""
"response_body": "{\"error\":{\"message\":\"You cannot access the app till you log in to www.facebook.com and follow the instructions given.\",\"type\":\"OAuthException\",\"code\":190,\"error_data\":\"{\\\"checkpoint_url\\\":\\\"https:\\\\\\/\\\\\\/www.facebook.com\\\"}\",\"error_subcode\":459,\"fbtrace_id\":\"AUWZQsg7Opr7SEpp_lk9wUa\"}}"

Facebook - authorization error log 1

Facebook - authorization error log 2

Facebook - authorization error log 3


Need assistance?

Feel free to contact us and we will help you with the setup. To speed the process of resolving your issue, make sure you provide us with sufficient information.


Was this article helpful?