2013-05-04 97 views
0

我看不出明显的差异原因,但对于编写Facebook友好性来说,这是相当新颖的。Facebook刮板只看到部分标题

我有我的网站上一个页面,显示的Flickr相册: http://jpgme.co.uk/sports/index.php?type=sets

目前的标题来源是这样的:

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> 
<html xmlns:fb="http://ogp.me/ns/fb#" xmlns='http://www.w3.org/1999/xhtml'> 
<head> 
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8' /> 
    <title>Blue Line Ice Hockey Photography - Professional Ice Hockey Photography in Greater Manchester & Beyond</title> 
    <link href='http://jpgme.co.uk/sports/themes/blackstripe/css/blackstripe.css' rel='stylesheet' type='text/css' /> 
    <link rel='alternate' type='application/rss+xml' title='Blue Line Ice Hockey Photography - Professional Ice Hockey Photography in Greater Manchester & Beyond' href='http://jpgme.co.uk/sports/index.php?type=rss' /> 

    <meta property="fb:admins" content="61401353" /> 
    <meta property="og:title" content="Blue Line Ice Hockey Photography" /> 
    <meta property="og:type" content="website" /> 
    <meta property="og:url" content="http://jpgme.co.uk/sports/"/> 
    <meta property="og:image" content="http://jpgme.co.uk/images/fb.jpg"/> 

</head> 

但所有Facebook刮刀可以看到的是:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> 
<html> 
<head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head> 
<body> 
<div id="leftcontent"></div> 

回答

1

试图在文件加载后报废!

可能的原因是您尝试在整个页面加载之前进行报废。

此外,使用AJAX的FB在需要时添加/删除div,这也可能是可能的问题。

+0

你是对的,我没有足够的耐心。 [link] https://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fjpgme.co.uk%2Fsports%2Findex.php%3Ftype%3Dsets [/ link ] 现在显示一切正确 – 2013-05-04 18:26:18