Send messages conforming new facebook policy (#32516)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-03-05 17:19:30 -08:00
1 parent 19254eee30
commit e02042b33e
2 files changed
+16 -2

No files matched your search

+6 -1
View File
@@ -97,7 +97,12 @@ class FacebookNotificationService(BaseNotificationService):
else:
recipient = {"id": target}
body = {"recipient": recipient, "message": body_message}
body = {
"recipient": recipient,
"message": body_message,
"messaging_type": "MESSAGE_TAG",
"tag": "ACCOUNT_UPDATE",
}
resp = requests.post(
BASE_URL,
data=json.dumps(body),