Facebook Login Button: logout issue -


i'm using facebook php sdk v2.1.2 , js sdk on page. i've put <fb:login-button autologoutlink="true"></fb:login-button>

[...]   <head>     <script type="text/javascript" src="http://connect.facebook.net/pt_br/all.js#xfbml=1"></script>     <script type="text/javascript">       fb.init({           appid: '{$appid}',           cookie: true,           status: true,           xfbml: true       });       fb.event.subscribe('auth.logout', function (response) {           alert('bye!');           window.location.refresh();       });     </script>   </head>   <body>     <div id="fb-root"></div>     <fb:login-button autologoutlink="true"></fb:login-button> [...] 

when i'm logged can see logout button, when click on nothing happens. missing something? use <fb:login-button> on logon , works charm php sdk!

thank in advance.

instead of

window.location.refresh(); 

try

window.location.reload(); 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -