【问题标题】:How to get the poster of a publication?如何获得出版物的海报?
【发布时间】:2017-04-26 20:08:59
【问题描述】:

实际上,我正在获取 Facebook 帖子的 post_id,并且我正在寻找发布该帖子的页面。函数“getParentId”是否返回它?

【问题讨论】:

    标签: facebook4j


    【解决方案1】:

    根据Facebook API documentationparent_id 是“此帖子的父帖子的 ID(如果存在)”。因此,这不是您想要的。

    您可以通过 facebook4j 的 getFrom 方法获取帖子所属页面的 id。

    图形浏览器示例:

    postId=5281959998_10151166683754999
    GET /v2.9/$postId?fields=from
    {
      "from": {
        "name": "The New York Times",
        "id": "5281959998"
      },
      "id": "5281959998_10151166683754999"
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-12
      • 1970-01-01
      相关资源
      最近更新 更多