포럼
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
facebook JavaScriptsdk 포함하려면 어떻게 해야하나요?
2012.01.01 20:15
- Include the JavaScript SDK on your page once, ideally right after the opening
<body>
tag.<div id="fb-root"></div><script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1";fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script> - Add an XML namespace to the
<html>
tag of your document. This is necessary for XFBML to work in earlier versions of Internet Explorer.<html xmlns:fb="http://ogp.me/ns/fb#">라고 되어있는데, 어느부분에 어떻게 삽입해야하는지 알려주시면 감사하겠습니다.. 질문게시판에도 올릴게요..