models.py 文件源码

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

项目:lenuage 作者: laboiteproject 项目源码 文件源码
def update_data(self):
        graph = facebook.GraphAPI(access_token=settings.FACEBOOK_ACCESS_TOKEN)
        graph = graph.get_object(id=self.page_name, fields='fan_count')
        self.likes = int(graph.get('fan_count'))
        self.save()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号