how to do Allowed Domains for the JavaScript SDK by code ?
1

Hello

We have recently created a new Facebook app and configured all the required settings for the Facebook Login for Business product. Additionally, we have manually added our CRM domain to the Allowed Domains for the JavaScript SDK section in the app settings, as shown in the attached screenshot: https://imgur.com/a/KAtSAVd

However, our goal is to automate this process. We don't want to manually add the domain for each customer who purchases our plugin for Facebook Login for Business. This manual configuration becomes quite cumbersome and inefficient as we scale.

We are seeking a way to automate the process of adding allowed domains for the JavaScript SDK through code, either via an API or another method (using JavaScript or PHP). Specifically, we would like to dynamically add the necessary domains during the setup of our plugin for each new customer, rather than having to do it manually through the Facebook Developer Dashboard.

Could you please guide us on how to achieve this, or if there is an API or alternative method available for programmatically adding allowed domains to the JavaScript SDK section?

Thank you in advance for your assistance.

Nimesh
Asked about a month ago