버튼 : (특정 Facebook 페이지에 직접 보내기) 예 : [http://lifelearning.x10.mx/FB-test2.html ] [1]Facebook Like Box가 Facebook Like 버튼처럼 사용자를 Facebook 페이지로 리디렉션하지 않습니다.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head></head>
<body>
<div id="fb-root"></div>
<fb:like href="http://www.facebook.com/pages/AEA-%E6%BE%B3%E6%B4%B2%E6%95%99%E8%82%B2%E5%8D%94%E6%9C%83/372744124562?bookmark_t=page" send="false" width="450" show_faces="false" font=""></fb:like>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '372744124562', status: true, cookie: true, xfbml: true});
FB.Canvas.setSize({ width: 520, height: 1500 });
FB.Event.subscribe('edge.create',
function(response) {
// put redirect code here eg
window.location = "http://www.facebook.com/pages/AEA-%E6%BE%B3%E6%B4%B2%E6%95%99%E8%82%B2%E5%8D%94%E6%9C%83/372744124562?bookmark_t=page";
}
);
};
//Load the SDK asynchronously
(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>
</body>
</html>
처럼 상자 (실패) 예 : [http://lifelearning.x10.mx/FB-test3.html][2]
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head></head>
<body>
<div id="fb-root"></div>
<fb:like-box href="http://www.facebook.com/pages/AEA-%E6%BE%B3%E6%B4%B2%E6%95%99%E8%82%B2%E5%8D%94%E6%9C%83/372744124562?bookmark_t=page" width="292" show_faces="true" stream="true" header="true"></fb:like-box>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '372744124562', status: true, cookie: true, xfbml: true});
FB.Canvas.setSize({ width: 520, height: 1500 });
FB.Event.subscribe('edge.create',
function(response) {
// put redirect code here eg
window.location = "http://www.facebook.com/pages/AEA-%E6%BE%B3%E6%B4%B2%E6%95%99%E8%82%B2%E5%8D%94%E6%9C%83/372744124562?bookmark_t=page";
}
);
};
//Load the SDK asynchronously
(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>
</body>
</html>
사람들은 말한다 이것은 Like Box의 버그입니다. 어떤 사람들은 그것이 작동한다는 것을 보여줍니다 : http://www.fbrell.com/xfbml/fb%3alike-box
페이스 북에 대해 잘 아는 분 누구라도 도와 주실 수 있습니까? 나는 JS를 많이 알고 있지만 페이스 북의 API에 대해서는 아무것도 모른다. Like Button과 동일한 방식으로 Like Box 작업을 수행하는 방법을 누군가가 알 수 있습니까?
* 이들은 모두 웹에서 수집 한 것입니다. 그리고 코드는 제 것입니다.
예, 나는 또한 전에 해당 게시물을 읽었습니다. 지금 당장 할 수있는 유일한 방법은 기다리는 것입니다. FB 개발자의 최신 업데이트 이후로 너무 오래되었습니다. –