Last 12 weeks · 2 commits
5 of 6 standards met
Repository: facebook/facebook-nodejs-business-sdk. Description: Node.js SDK for Meta Marketing APIs Stars: 577, Forks: 242. Primary language: JavaScript. Languages: JavaScript (100%). Homepage: https://developers.facebook.com/docs/business-sdk Latest release: v24.0.1 (3mo ago). Open PRs: 15, open issues: 65. Last activity: 4w ago. Community health: 75%. Top contributors: jingping2015, stcheng, vicdus, satwikareddy3, HeyMultiverse, marksliva, zanyaziz, davit-y, donglinw-fb, supasate and others.
JavaScript
Description When attempting to create an AdSet that redirects to WhatsApp using the Marketing API, I encounter the following error: The same configuration works perfectly fine when created via Meta Ads Manager. However, it fails when trying to create it programmatically through the API. Below are the details of the request being sent and other relevant context. Steps to Reproduce 1. Retrieve WhatsApp numbers using the following endpoint: 2. Use the retrieved and other necessary information to create an AdSet with the following payload: 3. The API responds with the error described above, indicating that the WhatsApp phone number is not linked to the account. Expected Behavior The AdSet should be successfully created using the API with the same configuration that works when created through Meta Ads Manager. Actual Behavior The API returns an error stating: . Additional Context API Scopes Used: The phone number is correctly retrieved using the field of the endpoint and is linked to the same business account used for the ad campaign. When I check the AdSet created through Meta Ads Manager in the Graph API Explorer, the structure matches the payload sent through the API. Steps Tried to Resolve Confirmed that the phone number is linked to the correct business account. Verified that the access token has all necessary permissions. Successfully created an AdSet using the same phone number via Meta Ads Manager. Compared the structure of the AdSet created via Ads Manager and the payload sent via the API. Request Please confirm if there are additional steps required to link the WhatsApp phone number to the ad account when using the API. Verify if this is a known bug or limitation in the API. Provide guidance on resolving this issue programmatically.