【问题标题】:Python - Facebook Graph Api - scheduled_publish_time not working withPython-Facebook Graph Api-scheduled_publish_time 无法使用
【发布时间】:2017-10-03 08:44:33
【问题描述】:

无法使用 facebook graph Api 安排发布时间。它显示错误为“facebook.GraphAPIError:(#100)您无法在已发布的帖子上指定预定的发布时间”。没有给定的_publish_time,它的工作正常。但我需要安排 -

def main():
    cfg = {
    "page_id" : "13162497478786",
    "access_token": "EAAB1lk5qSpQBAFpeQkf9SfUbKN5m9SRyi7JMa0g0ojLBpwMoYHUuEPkvQqsdpZCAAczYFZBCZAfUhQ9bM2oZAMUtU6bJINRc6cd8ZADSj2jCA9vf0URh9gr9lYhCnZBWhCXUhAPEQUsy8scxRnXZBCfciKVEQ4sjtIZBPy1cZD"
    }
    api = get_api(cfg)
    scheduled_publish_time = 1507039500
    msg = "Welcome to my page with Python14"
    status = api.put_object(parent_object='me', 
                            connection_name='feed',
                            message=msg,
                            link="https://www.facebook.com",
                            scheduled_publish_time = 1507039500 )

【问题讨论】:

    标签: python facebook facebook-graph-api


    【解决方案1】:

    如果您想使用 API 安排帖子,您还需要将 published 字段设置为 false:https://developers.facebook.com/docs/graph-api/common-scenarios/#scheduledposts

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-07-19
      • 2016-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-16
      相关资源
      最近更新 更多