facebook
2011-10-06 120 views 1 likes 
1

如何重新加載Facebook頁面?如何重新加載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&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;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的page.However,上面的代碼重定向我http://www.facebook.com/insights/?sk=po_263130783727234 .. 如何重裝我的Facebook頁面?

回答

0

你可以嘗試:

window.location.href = window.location.href; 
+1

Nopes,這是行不通的..Any其他的解決辦法? – user954687

2

試試這個:

top.location.href = '<YOUR TAB URL>';

相關問題