【问题标题】:Facebook open graph- share a poem instead of an articleFacebook打开图表-分享一首诗而不是一篇文章
【发布时间】:2015-05-27 08:12:59
【问题描述】:

我的网站分享诗歌、故事和文章。 这是一首诗的开放图的示例。

  {
   "id": "905716739487689",
   "application": {
      "id": "728278247279506",
      "name": "mypen",
      "url": "https://he.mypen.net/"
   },
   "created_time": "2015-04-08T10:48:04+0000",
   "description": "My complexity, my life is yours. You have me in the morning as i get out of bed. You have me in the night as i go to sleep.  My complexi...",
   "image": [
      {
         "height": 408,
         "type": "image/jpeg",
         "url": "https://d331rn7syke6mg.cloudfront.net/random/red/32/7/612.jpg",
         "width": 612
      }
   ],
   "is_scraped": true,
   "site_name": "MyPen.net",
   "title": "My Complexity",
   "type": "article",
   "updated_time": "2015-05-27T07:40:27+0000",
   "url": "https://en.mypen.net/read.php?ID=123",
   "data": {
      "section": "Poems"
   }
}

问题是,当用户分享一首诗时,Facebook 会告诉它是一篇文章。我在其他地方读过我应该将 og:type 设置为文章,但这似乎不正确:

有没有办法让打开的图表显示“Eran Shmuel 在 mypen 上分享了一首诗”?

或者对于诗歌和故事,我是否必须将 og:type 更改为“网站”?

【问题讨论】:

    标签: facebook web share facebook-opengraph


    【解决方案1】:

    您可以创建自己的自定义 OpenGraph 对象和操作。看看指南在

    创建自定义 Open Graph 故事有几个基本组件:

    • 用于发布和读取动作和对象的应用命名空间
    • 自定义对象
    • 自定义操作
    • 为发布而配置的 Open Graph 故事

    在您的情况下,我认为您需要设置前两点,并使用共享对话框来共享对象。

    【讨论】:

    • 谢谢!它会改变我帖子的浏览量吗?因为我听说 og:type="article" 被推荐
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-31
    相关资源
    最近更新 更多