2010-07-02 6 views
0

og 메타 태그가 설정된 fb : like를 사용했습니다. IE를 제외한 모든 브라우저에서 제대로 작동합니다. IE에서는 내가 좋아하는 버튼을 클릭 할 때 "공유하는 당신의 코멘트 상자"팝업이 표시되지 않습니다. 그러나 모든 브라우저에서 그렇습니다.Facebook : IE에서 Like 버튼을 클릭 한 후 댓글 박스

여기 내 코드입니다.

<!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" xmlns:og="http://opengraphprotocol.org/schema/"> <head> 

<meta property="og:title" content="add the Facebook like button"/> <meta property="og:site_name" content="sitename"/> <meta property="og:image" content="http:/www.mysitename.com/images/myimagename.jpg"/> <meta property="og:type" content="article" /> <meta property="og:url" content="http:/www.mysitename.com/home.html"/> <meta property="og:description" content="description comes here"/> 

</head> <body> 

<div id="fb-root"></div> 
    <script> 
     window.fbAsyncInit = function() { 
     FB.init({ appId: 'myappid', status: true, cookie: true, 
       xfbml: true}); 
     }; 
     (function() { 
     var e = document.createElement('script'); 
     e.type = 'text/javascript'; 
     e.src = document.location.protocol + 
      '//connect.facebook.net/en_US/all.js'; 
     e.async = true; 
     document.getElementById('fb-root').appendChild(e); 
     }()); 
    </script> 

    <br /> <br /> <fb:like href="http:/www.mysitename.com/home.html" layout="button_count" show_faces="false" width="350"></fb:like> <br /><br /> 

</body> </html> 

답변

0

가 IE에서 작동하도록 아래의 속성을 추가

<html xmlns:og="http://opengraphprotocol.org/schema/" 
     xmlns:fb="http://www.facebook.com/2008/fbml"> 
관련 문제