1
我在網頁上安裝Facebook的評論模塊/插件的規劃,讓我們說:重新定向到網頁Facebook的評論後放在
是否有可能重新直接用戶網站內的另一個着陸頁?比方說,我想點擊張貼評論後,他們在這裏派:
http://www.example.com/landing-page/
這可能與Facebook的任何API或其他腳本?
我在網頁上安裝Facebook的評論模塊/插件的規劃,讓我們說:重新定向到網頁Facebook的評論後放在
是否有可能重新直接用戶網站內的另一個着陸頁?比方說,我想點擊張貼評論後,他們在這裏派:
http://www.example.com/landing-page/
這可能與Facebook的任何API或其他腳本?
當用戶添加這樣的評論,您可以訂閱該觸發該事件comment.create:
初始化
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'sensored-app-id',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
/* All the events registered */
FB.Event.subscribe('comment.create', function (response) {
// Redirect to http://www.example.com/landing-page/
window.location = "http://www.example.com/landing-page/";
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/fi_FI/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
而在你的FB評論您必須設置通知=「真」之類所以
<fb:comments numposts="10" notify="true"></fb:comments>