如何重新加载Facebook页面?
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
$(document).ready(function(){
/*var host = '<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.yahoo.com&send=false&layout=button_count&width=90&show_faces=false&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe>';
$(".like_frame").append(host);*/
$appdomain = 'http://www.facebook.com/apps/application.php?id=263130783727234&sk=app_263130783727234';
$(".likebtn").attr("href",$appdomain);
FB.Event.subscribe('edge.create',
function(response) {
window.location.reload();
}
);
});
</script>
<fb:like href="http://www.facebook.com/apps/application.php?id=appid&sk=app" width="450" height="80" class="likebtn"/>
当我点击“赞”按钮时,我需要重新加载Facebook页面。但是,上面的代码会将我重定向到http://www.facebook.com/insights/?sk=po_263130783727234 .. 如何重新加载我的Facebook页面?
答案 0 :(得分:2)
试试这个:
top.location.href = '<YOUR TAB URL>';
答案 1 :(得分:0)
你可以尝试:
window.location.href = window.location.href;