Facebook Chatbot回复没有回应

时间:2018-02-26 06:09:15

标签: python facebook flask facebook-chatbot facebook-webhooks

我正在使用fb chatbot并在通用模板按钮中使用回发​​。但是,单击回发按钮后没有响应。

enter image description here

"buttons": [
                {
                    "type": "web_url",
                    "url": "https://maps.google.com/?q={lat},{lon}".format(lat=store['coordinates']['lat'], lon=store['coordinates']['lon']),
                    "title": u"店家位置"
                },
                {
                    "type": "postback",
                    "payload": Function.sendGourmetComments + "_{id}".format(id=store["id"]),
                    "title": u"觀看評論"
                },
                {
                    "type": "postback",
                    "payload": Function.sendStoreHearts + "_{upload}".format(upload=None) + "_{id}".format(id=store["id"]) + "_{push}".format(push=None) + "_{edit}".format(edit=None) + "_{search}".format(search=True),
                    "title": u"撰寫評論"
                }
            ]

我想我没有检查message_postback事件,但是,我做了。我甚至没有收到我的webhook的任何回复。因此,对我而言,这是多么神秘的事情。

以前工作正常,但重新启动计算机后,它无法正常工作。我正在使用ngork将我的服务器API公开为回调网址。

1 个答案:

答案 0 :(得分:0)

两天前我遇到了这个问题。 您需要page_messaging facebook的批准才能收到它Facebook's approved page_messaging permission