Comments (27)
why facebook want to make thing so complicated?
from whatsapp-business-api-setup-scripts.
Why I am not able to generate a certificate for verification.
from whatsapp-business-api-setup-scripts.
@manfye With the recent implementation of the cloud API and you want to call the APIs directly from your application, the certificate is not required anymore. The certificate is required only if you are integrating with third-party service providers like twilio. Learned this the hard way.
This guy has made a good video of how to setup WhatsApp business Cloud API. Hope it is of some help to anyone coming here.
https://www.youtube.com/watch?v=d6lNxP2gadA
from whatsapp-business-api-setup-scripts.
You can apply here: https://www.facebook.com/business/m/whatsapp/business-api
I've applied to this and I haven't received an email from them. Why is this so complicated?
from whatsapp-business-api-setup-scripts.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
from whatsapp-business-api-setup-scripts.
FULL SOLUTION - Correct as of 09/05/2024
I have managed to verify my number and also move it from Pending
to Connected
without having to download the cert
Pre-req: First add your number to your WhatsApp Business account via the UI here https://business.facebook.com/wa/manage/home/
1: Get your Phone Number ID
Please ENSURE you're using the correct WABA-ID (the one your phone number is registered on, not your test account ID)
https://graph.facebook.com/v19.0/{{WABA-ID}}/phone_numbers
- Request Verification Code
POST 'https://graph.facebook.com/v19.0/{{PHONE-NUMBER-ID}/request_code?ode_method=VOICE&language=en'
https://developers.facebook.com/docs/whatsapp/solution-providers/phone-numbers/registering-phone-numbers/
- Verify using the Code (received above)
POST https://graph.facebook.com/v19.0/{{PHONE-NUMBER-ID}}/verify_code?code={{VERIFY-CODE}}
https://developers.facebook.com/docs/whatsapp/solution-providers/phone-numbers/registering-phone-numbers/
- FINALLY - Register the Phone number
I know this sounds back to front, but this is the last step to set the number asConnected
POST https://graph.facebook.com/v19.0/{{PHONE-NUMBER-ID}}/register
BODY { "pin": "{{make a 6 digit pin to go here}}", "messaging_product": "whatsapp"}
from whatsapp-business-api-setup-scripts.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
Thanks man. If anyone wondering where to find the phone number id, it's in one of facebook request payloads in the "Getting started" section.
from whatsapp-business-api-setup-scripts.
If the business account had been working with a BSP, but now migrated to cloud API so there is no more intermediary why the business cant get the base64 certificate directly and expects this to be done by a BSP?
(also pinged @alanhhwong by mail)
from whatsapp-business-api-setup-scripts.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
This worked. Thanks!! If you turn off 2FA then follow this to turn it on again, the display name on the phone number will be changed to whatever you attempted to change it to without having to download any certificates.
from whatsapp-business-api-setup-scripts.
Hi there,
You should have been working with a Business Solutions Provider to get access to this WhatsApp Business Account? They are the ones who will register the account for you (by downloading the certificate).
Can you share with me account details? You can email me at [email protected]
from whatsapp-business-api-setup-scripts.
Thanks for your kind reply. But the thing is... we just want to becoming a solution provider. Is there any solution to this?
from whatsapp-business-api-setup-scripts.
You can apply here: https://www.facebook.com/business/m/whatsapp/business-api
from whatsapp-business-api-setup-scripts.
i have also facing the same issue can you you help me out
from whatsapp-business-api-setup-scripts.
i have also facing the same issue can you you help me out
Hi @abhiram1673, we are also facing the same issue. Were you able to troubleshoot this?
from whatsapp-business-api-setup-scripts.
@bhargavweb thank you, I will go to explore it further
from whatsapp-business-api-setup-scripts.
Hi, I have a business account and also can open the "Whatsapp Manager" page. But the challenge is I can't add any phone number in Whatsapp Manager. Here goes the error message.
"The certificate is not available for your business. Only the business solution provider who manages integration with the WhatsApp business platform will be able to download the certificate."
I hit google to find any solutions for this, but there is none, even I am not sure how to make my account as business solution provider. So please let me know how I can add phone numbers and use the Whatsapp business API. Many thanks!
Adding my account details in snapshot as attachment.
I am experiencing the same thing and for the life of me I don't know what to do.
from whatsapp-business-api-setup-scripts.
Have you fixed ?
from whatsapp-business-api-setup-scripts.
same issue, Meta is blocking the certificate code, already signed up with WA Business Platform... still no response....
from whatsapp-business-api-setup-scripts.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
This worked. Thanks!! If you turn off 2FA then follow this to turn it on again, the display name on the phone number will be changed to whatever you attempted to change it to without having to download any certificates.
This was very helpful, disabling the 2FA did the trick!!
from whatsapp-business-api-setup-scripts.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
I tried this one but only returns
{ "success": true }
Is api changed or i made some mistake?
from whatsapp-business-api-setup-scripts.
@ataknakbulut That means it worked.
from whatsapp-business-api-setup-scripts.
@ataknakbulut That means it worked.
But still i can't download certificate.
from whatsapp-business-api-setup-scripts.
@ataknakbulut the process will allow to change the name, not download the certificate.
from whatsapp-business-api-setup-scripts.
@ataknakbulut the process will allow to change the name, not download the certificate.
This is how I overcame this problem. If you have any issues, command will print them.
curl -i -X POST https://graph.facebook.com/v16.0/{phone number id}/register -H 'Authorization: Bearer {your token}' -H 'Content-Type: application/json' -d '{ "pin": "{you make up 6 digit pin}", "messaging_product": "whatsapp"}'
Maybe this link will be useful if you are building simple whatsapp integration: https://developers.facebook.com/docs/whatsapp/cloud-api/get-started-for-bsps#subscribe-waba
This worked. Thanks!! If you turn off 2FA then follow this to turn it on again, the display name on the phone number will be changed to whatever you attempted to change it to without having to download any certificates.
i did the same but display name didn't change
from whatsapp-business-api-setup-scripts.
Hi All,
Call This api
https://graph.facebook.com/v19.0/{{WABA-ID}}/phone_numbers?fields=display_phone_number,name_status,certificate,new_certificate,new_name_status
See below link for more infor
https://developers.facebook.com/docs/whatsapp/embedded-signup/faq/#faq_842061566349538
from whatsapp-business-api-setup-scripts.
hi @Lucisano
where do you get the bearer token to hit the https://graph.facebook.com/v19.0/{{WABA-ID}}/phone_numbers ?
from whatsapp-business-api-setup-scripts.
hi @Lucisano
where do you get the bearer token to hit the https://graph.facebook.com/v19.0/{{WABA-ID}}/phone_numbers ?
Hey @TheGlauberr
You're best follow these docs to get a Bearer token
You can get a Temp token via the Quickstart Section in your App page or a Permanent Token by creating a system token
from whatsapp-business-api-setup-scripts.
Related Issues (20)
- Prod-docker HOT 1
- Why I can't find script package in install packages HOT 1
- How to get the URL of an image in WhatsApp Business Cloud API, while we send an image through WhatsApp HOT 2
- A state that manged was in-correct related to voice message ! HOT 2
- Multi-Product & Single Product Messages not supporting on Cloud API HOT 2
- What HOT 1
- whatsapp for linux HOT 1
- version Grafana 8.3.5 vulnerable to several CVEs HOT 2
- This is for the WhatsApp messeger devs - I'm not sure how to reach them. HOT 5
- Connection to PostgreSQL with required SSL HOT 2
- Should be an option for edit the sent message HOT 1
- [security] grafana 8.5.11 impacted by a CVE HOT 1
- [security] Use a LTS version of prometheus HOT 1
- [monitoring] scraping of endpoint /v1/stats/db is not included in prometheus configuration HOT 1
- Provide the grafana dashboard in the repo HOT 2
- interpolation problems in yaml HOT 1
- WA_DB_CONNECTION_IDLE_TIMEOUT postgresql alternative HOT 1
- Where to find or how to calc the shard_id to shard-number mapping ? HOT 1
- Transforming Business with ICT: Strategies and Solutions 👩💻📈📉 HOT 1
- Error "Invalid authentication token format [] []" even when the api key is correct HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-business-api-setup-scripts.