簡體   English   中英

Facebook 未在 sharer.php 中讀取我的元標題標簽

[英]Facebook does not read my meta title tag in sharer.php

我正在嘗試在 facebook 上使用 sharer.php 共享鏈接。我使用了代碼

<a style="cursor: pointer;" target="_blank" title="
<?php echo ucfirst($this->headline); ?>" 
href="http://www.facebook.com/sharer.php?u=<?php echo $url ?>" >

$url在這里被 urlencoded。

我使用了 og 元標記,如下所示:

<meta property="og:title" content="Test" />
<meta property="og:type" content="company" />
<meta property="og:url" content="http://75.125.190.162:7113/index.php?option=com_realtyna&amp;view=propertyshow&amp;building_name=&amp;category=FLAT&amp;country=&amp;state=Ariana&amp;city=Ariana+Ville&amp;zone=&amp;listing_type=&amp;bedroom=Three+bedrooms&amp;pid=180&amp;Itemid=3&amp;lang=en" />
<meta property="og:image" content="http://75.125.190.162:7113/components/com_realtyna/uploads/180/180_main_iHq29q.jpg" />
<meta property="og:site_name" content="Test" />
<meta property="fb:admins" content="100000626812232" />

問題是在 facebook 上共享它時,它沒有顯示我在此處指定的標題。它似乎選擇了頁面的標題,但更改它也無濟於事。我無法弄清楚它是從哪里獲得標題的。 幫助任何人。 Url 到頁面是:

http://75.125.190.162:7113/index.php?option=com_realtyna&view=propertyshow&building_name=&category=FLAT&country=&state=Ariana&city=Ariana+Ville&zone=&listing_type=&bedroom=Three+bedrooms&pid=180&Itemid=3&lang=en

只需放置多個 og:image 標簽,它就會讓用戶選擇他們想要使用的照片。

<meta property="og:image" content="http://75.125.190.162:7113/components/com_realtyna/uploads/180/180_main_iHq29q.jpg" />
<meta property="og:image" content="http://75.125.190.162:7113/components/com_realtyna/uploads/180/180_main_47Lcge.jpg" />

資料來源: https://developers.facebook.com/docs/opengraph/

暫無
暫無

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

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