facebook.py 文件源码

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

项目:tumanov_castleoaks 作者: Roamdev 项目源码 文件源码
def post(message, url=None):
    """
        ?????????? ? Facebook
    """
    config = SocialConfig.get_solo()
    if not message:
        return

    import facebook
    facebook_api = facebook.GraphAPI(config.facebook_access_token)
    attachment = {}
    if url:
        attachment['link'] = url

    facebook_api.put_wall_post(message=message, attachment=attachment)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号