部分服务中断share-external
What is the appropriate method for retrieving an access token and phone number ID for a client who has completed the WhatsApp Business Platform embedded signup flow using their Facebook account.
1

Current Understanding:

My understanding is that the embedded signup flow typically involves a redirect to a Meta login page and, upon successful completion, returns an authResponse containing a code. However, in my current scenario, I only have access to this code from the authResponse provided by WhatsApp.

My Request:

I would be grateful if you could clarify the following:

  1. Is there a supported API endpoint within the Meta Graph API where I can send a request using the code from the authResponse to obtain an access token and phone number ID for my client?
  2. If not, are there alternative approaches I can consider to achieve client-side signup for WhatsApp Business Platform through my website, without requiring a pre-registered Meta app and associated credentials?

Additional Information:

Abhinav
提问时间: 约 5 个月前
已选回答
1

Follow the steps here; https://developers.facebook.com/docs/whatsapp/embedded-signup/getting-started https://developers.facebook.com/docs/whatsapp/embedded-signup/embed-the-flow

Or head over to developers.facebook.com, select your app, click on WhatsApp Product from left navigation, choose "ES Integration" this page shows all the steps you need to take, including request examples.

Mind that in your Embedded Signup flow configuration, if you have chosen 60 days expiration, eventually your calls will start to fail once token is expired, you have the option to configure ES Flow with a never ending token (be mindful).

Endpoint to retrieve phone number id is also available in those links above.

Hope this helps.

11月2日 15:20
Özgür