簡體   English   中英

facebook share og:url 覆蓋從 og:title 獲取的數據

[英]facebook share og:url overrides data taken from og:title

我的網站上有一個頁面,位於: www.mywebsite.com/share/id該網站有以下標簽:

    <meta property="og:url" content="https://www.mywebsite.com/catalog">
    <meta property="og:title" content="I just bought something">
    <meta property="og:description" content="This is your bought item">

該頁面有一個帶有指向http://www.facebook.com/sharer.php?u=www.mywebsite.com/share/id'的鏈接的 achor 標簽,按下后會打開 Facebook 共享對話框

我希望 FB 共享對話框從 og 標簽加載標題、描述和 url,og:url 中的 url 應該是 FB 共享對話框中出現的頁面的鏈接。

問題是,FB 共享對話框並沒有這樣做,而是從位於 OG:URL 元標記中的 url 獲取數據,並忽略提供的 og:title 和 og:description

我做錯了什么?

AFAIK, og:url告訴 Facebook抓取工具忽略此頁面中的任何元數據,而是從og:url加載元數據。 請參閱網站管理員共享指南

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM