facebook-nodejs-business-sdk icon indicating copy to clipboard operation
facebook-nodejs-business-sdk copied to clipboard

Add WhatsApp Business Account ID to Conversions API User Data

Open huw opened this issue 1 year ago • 0 comments

I’ve outlined in issue #305 that the User Data object in the Conversions API is missing the WhatsApp Business Account ID (whatsapp_business_account_id), which is a required parameter for Business Messaging events with a Click to WhatsApp ID (ctwa_clid).

This PR adds the appropriate parameter. I’ve tested it in my own project and it behaves correctly.

I followed the pattern for how ctwa_clid was added to the project; please let me know if the PR is too sparse and I can flesh out documentation, testing & validation. That said, this PR is sufficient for adding the functionality and I’d prefer to defer anything else to an additional PR.

Fixes #305

huw avatar Feb 06 '25 08:02 huw