2013-08-17

Facebook api logout without popup

During the building some webpage where users are able to register themselves through social networks, I stuck with a stupid problem related with facebook logout procedure. And all answers were hidden in... number sign "#" within anchor "href" element.

This one gives login popup

< a href="#" class="logoutFB" onclick="FB.logout()"> logout </a >

This one works fine, reloads page and is without popup

< a href="" class="logoutFB" onclick="FB.logout()"> logout </a >

Nav komentāru:

Ierakstīt komentāru