2011-09-06 2 views
1

페이스 북의 열린 그래프를 내 사이트에 통합하려고했지만 URL Linter를 통해 실행했는데 오류가 발생했습니다 : "필수 속성 누락, og : titleand og : url이 필요합니다". 이것은 내 제품의 설명 페이지입니다.페이스 북에 열린 그래프와 같은 문제가 생겼습니다

내가 누락 된 항목이 있습니까?

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#" > 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="Description" content="" /> 
<meta name="keywords" content="hard drives, electronics, cctv, cables, psu" /> 
<meta name="document-classification" content="" /> 

<meta property="og:title" content="CAT5e UTP PATCH ETHERNET NETWORK CABLE LEAD 0.5M GREEN" /> 
<meta property="og:type" content="product"/> 
<meta property="og:url" content="http://apps.facebook.com/maplinuk/buynow-id-10015,20015-cat5e-utp-patch-ethernet-network-cable-lead-0-5m-green.html" /> 
<meta property="og:image" content="http://www.247topseller.co.uk/clientstores/maplinuk/prod_image/rj45_250300.jpg" /> 
<meta property="og:site_name" content="maplinuk" /> 
<meta property="fb:app_id" content="{clipped}"/> 
<meta property="og:description" content="CAT5e UTP PATCH ETHERNET NETWORK CABLE LEAD 0.5M GREEN" /> 

</head> 
<body> 
<div id="fb-root"></div> 
<script type="text/javascript"> 

window.fbAsyncInit = function() { 
FB.init({appId: '{clipped}', status: true, cookie: true, xfbml: true}); 

    }; 
(function() { 
    var e = document.createElement('script'); e.async = true; 
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; 
    document.getElementById('fb-root').appendChild(e); 
}()); 
</script> 
<fb:like href="http://apps.facebook.com/maplinuk/buynow-id-10015,20015-cat5e-utp-patch-ethernet-network-cable-lead-0-5m-green.html" show_faces="true" width="450" font=""> </fb:like> 
</body> 
</html> 
+0

코드에서 실제 appID가 노출 되었습니까? 편집자가 수정 화면에서 볼 수 없도록 제거해야합니다. – Sparky

+0

감사합니다 Sparky672 .. – vicky

답변

1

나는 당신의 og : url이 앱 페이지를 가리키고 있기 때문에 문제가 발생한다고 생각합니다.

좋아요 버튼의 Facebook 코드는 내가 아는 한 해당 URL로 이동하여 여기에 게시 한 원본 페이지가 아닌 해당 URL에서 메타 데이터를 검색합니다.

그래서 Facebook의 앱 페이지에 이러한 메타 데이터 요소가 없다는 오류 메시지가 표시됩니다.

자세한 내용은 the use of og:url입니다.

David

관련 문제