开发者

How can I reload a facebook page?

开发者 https://www.devze.com 2023-04-11 17:09 出处:网络
How can I reload a facebook page ? <script src=\"http://connect.facebook.net/en_US/all.js#xfbml=1\"></script>

How can I reload a facebook page ?

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<script type="text/javascript">
    $(document).ready(function(){

        /*var h开发者_JAVA技巧ost = '<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"/>

As I click on the like button, I need to reload the facebook page.However, the above code redirects me to http://www.facebook.com/insights/?sk=po_263130783727234.. How do I reload my facebook page ?


Try this:

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


You could try:

window.location.href = window.location.href;
0

精彩评论

暂无评论...
验证码 换一张
取 消