Giter Club home page Giter Club logo

Comments (27)

manfye avatar manfye commented on May 28, 2024 37

why facebook want to make thing so complicated?

from whatsapp-business-api-setup-scripts.

Nirbhay468 avatar Nirbhay468 commented on May 28, 2024 14

Why I am not able to generate a certificate for verification.
image

from whatsapp-business-api-setup-scripts.

bhargavweb avatar bhargavweb commented on May 28, 2024 3

@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.

hacker-prime avatar hacker-prime commented on May 28, 2024 3

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.

hostops avatar hostops commented on May 28, 2024 3

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.

Lucisano avatar Lucisano commented on May 28, 2024 2

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)

#59 (comment)

https://graph.facebook.com/v19.0/{{WABA-ID}}/phone_numbers

  1. 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/

  1. 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/

  1. FINALLY - Register the Phone number
    I know this sounds back to front, but this is the last step to set the number as Connected

POST https://graph.facebook.com/v19.0/{{PHONE-NUMBER-ID}}/register
BODY { "pin": "{{make a 6 digit pin to go here}}", "messaging_product": "whatsapp"}

image

from whatsapp-business-api-setup-scripts.

aviderambo avatar aviderambo commented on May 28, 2024 1

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.

tyoc213 avatar tyoc213 commented on May 28, 2024 1

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.

thelinuxkid avatar thelinuxkid commented on May 28, 2024 1

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.

alanhhwong avatar alanhhwong commented on May 28, 2024

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.

suisun2015 avatar suisun2015 commented on May 28, 2024

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.

alanhhwong avatar alanhhwong commented on May 28, 2024

You can apply here: https://www.facebook.com/business/m/whatsapp/business-api

from whatsapp-business-api-setup-scripts.

abhiram1673 avatar abhiram1673 commented on May 28, 2024

i have also facing the same issue can you you help me out

from whatsapp-business-api-setup-scripts.

bhargavweb avatar bhargavweb commented on May 28, 2024

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.

manfye avatar manfye commented on May 28, 2024

@bhargavweb thank you, I will go to explore it further

from whatsapp-business-api-setup-scripts.

hacker-prime avatar hacker-prime commented on May 28, 2024

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.

image image

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.

aslamanver avatar aslamanver commented on May 28, 2024

Have you fixed ?

from whatsapp-business-api-setup-scripts.

cbw-lsalita avatar cbw-lsalita commented on May 28, 2024

same issue, Meta is blocking the certificate code, already signed up with WA Business Platform... still no response....

from whatsapp-business-api-setup-scripts.

RyzorBent avatar RyzorBent commented on May 28, 2024

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.

ataknakbulut avatar ataknakbulut commented on May 28, 2024

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.

thelinuxkid avatar thelinuxkid commented on May 28, 2024

@ataknakbulut That means it worked.

from whatsapp-business-api-setup-scripts.

ataknakbulut avatar ataknakbulut commented on May 28, 2024

@ataknakbulut That means it worked.

But still i can't download certificate.

from whatsapp-business-api-setup-scripts.

thelinuxkid avatar thelinuxkid commented on May 28, 2024

@ataknakbulut the process will allow to change the name, not download the certificate.

from whatsapp-business-api-setup-scripts.

Git-Sagar-J avatar Git-Sagar-J commented on May 28, 2024

@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.

alilibx avatar alilibx commented on May 28, 2024

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.

TheGlauberr avatar TheGlauberr commented on May 28, 2024

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.

Lucisano avatar Lucisano commented on May 28, 2024

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

https://developers.facebook.com/docs/whatsapp/business-management-api/get-started#1--acquire-an-access-token-using-a-system-user-or-facebook-login

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.