簡體   English   中英

whatsapp 雲 api 啟用 whatsapp_business_messaging 權限

[英]whatsapp cloud api enable whatsapp_business_messaging permission

我一直在嘗試使用雲 api 發送 whatsapp 消息,但它希望啟用 whatsapp_business_messaging 權限,該權限在與任何已創建的應用程序關聯時默認禁用。

https://developers.facebook.com/docs/whatsapp/cloud-api/get-started#get-access-token

我沒有找到任何有關啟用上述權限的文檔。 請協助

已編輯

WhatsApp 雲 API 現已公開!

根據他們的文檔,

開始使用它進行開發前置

  1. 注冊為元開發者
  2. 為您的帳戶啟用雙重身份驗證
  3. 創建元應用程序:Go 給開發人員。facebook.com > 我的應用程序 > 創建應用程序。 Select “業務”類型並按照屏幕上的提示進行操作。
  4. 在 App Dashboard 中,單擊您要連接到 WhatsApp 的應用程序。 向下滾動以找到“WhatsApp”產品,然后單擊設置。
  5. 入職流程執行以下操作:
  • 我們的應用程序與您選擇的商務管理器相關聯
  • WhatsApp 測試電話號碼已添加到您的業務中。 您可以使用此測試電話號碼探索 WhatsApp Business Platform,而無需注冊或遷移真實電話號碼。

有關更多信息,請參閱whatsapp 雲入門文檔

是的,WhatsApp Cloud API 現已公開。

借助 Cloud API,企業可以在幾分鍾內直接從 Facebook 訪問 WhatsApp Business API。

有關更多信息,請查看此WhatsApp Cloud API 指南

我最近為新的 WhatsApp Cloud API 制作了一個開源 python 包裝器,以幫助開發人員輕松上手,你真的想看看它httpsy://github.com/neurotech/he

安裝

pip install --upgrade heyoo

這是發送消息的示例代碼;

>>> from heyoo import WhatsApp
>>> messenger = WhatsApp('TOKEN',  phone_number_id='104xxxxxx')
>>> messenger.send_template('hello_world', 'your number')

對於 Javascript 開發人員,請查看Heyhooh

安裝

npm install heyooh

這里如何發送發送消息;

import WhatsApp from heyhooh
let messenger = new WhatsApp('TOKEN',  phone_number_id='104xxxxxx')
messenger.send_template("hello_world", "255757xxxxxx")

對於 PHP 開發人員whatsappcloud-php

安裝

composer require zepson/whatsappcloud-php

這里的代碼如何發送消息;

<?php

require_once 'vendor/autoload.php';
use zepson\Whatsapp\WhatsappClass;

$token = 'YOUR_META_WHATSAPP_APP_ACCESS_TOKEN';
$phone_number_id = '10726082513218961';
//send message
$tsap = new WhatsappClass( $phone_number_id, $token);

$sendtsap = $tsap->send_template('hello_world', '255654485755');
 
print_r($sendtsap);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM