og:url正在驱使我疯狂? [英] og:url is driving me crazy?

查看:125
本文介绍了og:url正在驱使我疯狂?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望你能帮助我...

hope you can help me...

我想有一个页面与Facebook元标签,如:

I want to have a page with facebook metatags, like:

<meta property="og:title" content="TITULO" />
<meta property="og:type" content="website" />       
<meta property="og:image" content="http://profile.ak.fbcdn.net/hprofile-ak-snc4/277072_61646342824_993843268_n.jpg" />      
<meta property="og:url" content="http://www.clarin.com" />

而且问题是,我不是显示我在元标记中定义的描述,标题和图像我的页面,Facebook的框是生成与我的 og:url 中定义的url。我正在阅读文档,似乎应该是这样的。

and the problem is that instead of showing the descriptions, titles and images that I define in the metatags of my page, the facebook like box is generated with the url defined in my og:url. I was reading documentation and it seems that it should be in that way.

但是我仍然希望Facebook的框只生成我的页面的元标记,而不是与在 og:url 中定义的网址。

But I still want the facebook like box generated only with the metatags of my page, and not with the url defined in og:url.

是可能吗?有人做了吗?

is it possible? someone has done?

推荐答案

og:url基本上告诉FB scraper忽略这个页面上的任何东西,而不是删除这个url
所以它正在做正是它应该做的事情。如果您希望类似按钮指向其他网址,请使用 href 参数,并指向其他网址。

og:url basically tells the FB scraper "ignore anything on this page, and scrape this url instead" So it's doing exactly what it's supposed to do. If you want the like button to point to a different url, use the href parameter and have it point to a different url.

请参阅 https://developers.facebook.com/docs/reference/plugins / like / 获取更多信息。

这篇关于og:url正在驱使我疯狂?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆