【问题标题】:Facebook sharing: wrong sharing data when og:url usedFacebook 共享:使用 og:url 时共享数据错误
【发布时间】:2014-04-26 10:08:42
【问题描述】:

我尝试在 Facebook 上分享一些文章(不创建 fb 社交应用)。

我提供给https://www.facebook.com/sharer/sharer.php 的文件头如下:

<meta property="og:type" content="article" />
<!meta property="og:url" content="url to some website" />
<meta property="og:title" content="Title" />
<meta property="og:image" content="url to image" />
<meta property="og:description" content="some description" />

问题是 - 每次我尝试设置 og:url 时,标题、图像和描述都会从“url 到某个网站”赶上并抑制我在这里明确输入的值! og:type 属性也从“文章”更改为“网站”。

我该如何解决这个问题?我需要为此创建 fb 社交应用吗?

【问题讨论】:

    标签: php facebook facebook-graph-api


    【解决方案1】:

    我不知道你到底想要什么,但 og:url 基本上会忽略你给标题的任何其他参数。

    你最好检查一下:) https://developers.facebook.com/docs/plugins/share-button

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-07
      • 2017-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多