Python 到 Facebook 消息,没有 xmpp 授权

Python to Facebook message, no xmpp authorisation

我正在尝试开发一个 python 脚本,它会自动向一个用户发送私人 Facebook 消息。

我已遵循程序 here,但这使用了 xmpp 访问令牌。 据我所知,这不再受支持。 有人知道合适的解决方法吗?

感谢您的帮助

您只能使用官方方式发送消息(发送对话框、Facebook Messenger 等)。

查看发送对话框:https://developers.facebook.com/docs/sharing/reference/send-dialog

很可能是您需要的。