![](/img/trans.png)
[英]How to send the og:Title og:Image og:Description og:url info from C# to Facebook
[英]Facebook share can't get page og:title and og:description
我正在測試網站上嘗試使用Facebook分享按鈕,但無法獲取og:title和og:description。
在我調試之后: https : //developers.facebook.com/tools/debug/og/object/
它顯示Object at URL 'http://okxok.asia/ItemDetail/Lifestyle-2' of type 'article' is invalid because the given value '' for property 'og:url' could not be parsed as type 'url'.
我不知道這是什么錯誤,我檢查og:url沒問題。
這是我的頁面詳細信息的屏幕截圖:
這是共享彈出窗口的屏幕截圖:
您正在使用Java生成Facebook不會解析的元標記。 該標簽必須與頁面一起發送,並且不能由客戶端生成。 因此,Facebook只會看到您直接發送給客戶端的內容:
<meta property="og:url" content="">
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.