facebook_module.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:stephanie-va 作者: SlapBot 项目源码 文件源码
def status_update(self):
        self.assistant.say("What's in your mind?")
        text = self.assistant.listen().decipher()
        try:
            self.graph.put_wall_post(text)
            self.assistant.say("You have successully put up a wall post.")
        except facebook.GraphAPIError:
            response = ("I have not been authorized to query your Facebook. If you " +
                        "would like to check your notifications in the future, " +
                        "please visit the Stephanie facebook module configuraton.")
            return response
        except:
            return "I apologize, there's a problem with that service at the moment."
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号