Nodejs:Messenger广播消息不工作



我正试图通过我的facebook信使机器人发送广播。这是我的代码:

if (subscribe === true) {
// Send the HTTP request to the Messenger Platform
request({
"uri": "https://graph.facebook.com/v2.11/me/broadcast_messages",
"qs": { "access_token": PAGE_ACCESS_TOKEN },
"method": "POST",
"message_creative_id": message_creative_id,
"notification_type": "REGULAR",
"messaging_type": "MESSAGE_TAG",
"tag": "NON_PROMOTIONAL_SUBSCRIPTION"
}, (err, res, body) => {
if (!err) {
console.log('message sent!')
} else {
console.error("Unable to send message:" + err);
}
});
}

但是,没有任何消息发送给我的任何用户。我的代码是错的,还是发送消息需要很长时间?

我当时没有启用订阅消息,所以这个问题是无效的。

最新更新