我正在处理 FB like 和 send 按钮,我遇到了这些问题我制作了一个包含一些元标记信息的页面,因为 FB 对象调试器可以验证页面在本节中,我将 og:url 设置为 URL喜欢按钮所在的页面的
在like按钮的href属性上,我给了Request.URL,问题是它不喜欢/发送我提到og:url的URL,而是在消息中发送Facebook.com
以下是我的元信息
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# tbsname: http://ogp.me/ns/fb/tbsname#">
<meta property="fb:app_id" content="242015609188249" />
<meta property="og:url" content="http://mywebsite.com/Course/Profile/1381765" />
<meta property="og:title" content="Details" />
<meta property="og:description" content="" />
下面是我的 FB like 按钮:
<div class="fb-like" data-href="@Request.Url" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div>