facebook - 使用 sdk python 回复所有消息页面 facebook
问题描述
conv = pagefacebook.get_object("me/conversations") msg = pagefacebook.get_object(conv["data"][0]["id"] + "/messages") print(conv)
for el in msg["data"]:
content = pagefacebook.get_object(el["id"]) # adding the field request
print(content["id"])
args = {"fields": "message"}
msgtext = pagefacebook.get_object("/" + content["id"], **args)
print(msgtext)
callSendAPI("106045308371301", "this is aloha")
pagefacebook.put_object("106045308371301", "messages", message="hello, world")
break
解决方案
推荐阅读
- html - 无限水平滚动图像循环?
- javascript - 这是解构赋值的一个例子吗?
- flutter - RawMaterialButton 不显示投影
- typescript - 打字稿:错误 TS2365:运算符 '+' 不能应用于类型 'string | 数字'和'字符串 | 数字'
- html - 无法读取数组中未定义的属性“”
- python - 如何在抽象语法树中检索文件名和模块名?
- java - 在改变速度时保持 javafx 视频播放器中的音频音高不变
- matomo - Piwik (Matomo) 在单个会话中创建多次访问
- model-view-controller - mvc项目中的三星指纹识别器
- python - 在 php/python 中仅打印表格输出的第一列