简体   繁体   English

Facebook 未在 sharer.php 中读取我的元标题标签

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

I am trying to share a link using sharer.php on facebook.I have used the code我正在尝试在 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 is urlencoded here. $url在这里被 urlencoded。

i have used the og meta tags as follows:我使用了 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" />

The problem is that on sharing it on facebook it doesnt shows the title which i specified here.It seems to pick the title of the page but changing it also doesnt helps.I cant figure out from where it is picking up the title.问题是在 facebook 上共享它时,它没有显示我在此处指定的标题。它似乎选择了页面的标题,但更改它也无济于事。我无法弄清楚它是从哪里获得标题的。 Help Anyone.帮助任何人。 Url to the page is: 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 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

Just put multiple og:image tags and it will give the user an option to choose which photo they want to use.只需放置多个 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" />

Source: https://developers.facebook.com/docs/opengraph/资料来源: https://developers.facebook.com/docs/opengraph/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM