我一直在我的论坛网站上使用Like and Share按钮已经有一段时间了,它工作得很好,直到1月9日(那是我最后一次分享的日期,从我的论坛网站到我的Facebook页面)。
今天,当我检查一些功能时,我看到Share链接不再有效。我在调试器中遇到一些奇怪的错误,例如响应代码500,缺少og:type属性,推断og:url和og:title。 Scraper也无法访问页面,显示“文档返回无数据”错误。如果我在浏览器窗口中打开它,页面呈现就可以了,这就是页面源的样子:
========== page souurce code start ==================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://forum.m1911.org" />
<base href="http://forum.m1911.org/" /><!--[if IE]></base><![endif]-->
<meta name="generator" content="vBulletin 4.2.2" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />
<meta property="fb:app_id" content="1409563412612912" />
<meta property="og:site_name" content="The M1911 Pistols Organization Forums Site" />
<meta property="og:description" content="This is the M1911.ORG Forums Site, a discussion board for all those interested in the M1911 pistol, its variances, its accessories and parts, its gunsmithing, usage etc. A complimentary site to our Home Page and our E-zine. M1911.ORG is an Internet organization, with all you ever wanted to know about the M-1911 pistol, designed by the most ingenious gunsmith of all times, John Moses Browning." />
<meta property="og:url" content="http://forum.m1911.org/showthread.php?105940-38-super-firing-pin" />
<meta property="og:type" content="article" />
<meta property="og:image" content="http://forum.m1911.org/images/facebook_image_share.jpg" />
<meta property="og:title" content="38 super firing pin" />
================= end of code part ===================
奇怪的是,今天,我升级了另一个我拥有的网站,并且我使用的是同一个Facebook应用程序,并且一个工作正常,显示了类似的页面源代码(如下所示)。
========== page souurce code start ==================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://ezine.m1911.org" />
<base href="http://ezine.m1911.org/" /><!--[if IE]></base><![endif]-->
<meta name="generator" content="vBulletin 4.2.2" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon" />
<meta property="fb:app_id" content="1409563412612912" />
<meta property="og:site_name" content="M1911.ORG E-zine" />
<meta property="og:description" content="http://i579.photobucket.com/albums/ss238/Onufriyenko/logos/wilson_combat.jpg
Wilson Combat Drop-In Grip Safeties
http://i579.photobucket.com/albums/ss238/Onufriyenko/Articles/WilsonGripSafety/PICT0002.jpg
Drop-in … or not?
Reviewed for M1911.ORG by Harwood Loomis" />
<meta property="og:url" content="http://ezine.m1911.org/showthread.php?187-Wilson-Combat-Drop-In-Grip-Safety" />
<meta property="og:type" content="article" />
<meta property="og:image" content="http://forum.m1911.org/images/facebook_image_share.jpg" />
<meta property="og:title" content="Wilson Combat Drop-In Grip Safety" />
============ end of page code ===========
此外,程序无法识别我所拥有的共享图像,就好像它不存在一样。
任何想法可能出错?这是我的网站还是Facebook?!??!
非常感谢
答案 0 :(得分:0)
首先,Facebook以访客身份查看您的网站,因此如果您希望Facebook使用这两者,您需要确保访客可以看到缩略图和附件。
您可以在Facebook上使用此调试工具,查看遗漏的内容:Facebook debug tool
如果您确定自己遇到了什么问题,那么可以轻松解决问题。