javascript - Implementing Fb logout -


i'm working on hybrid application developed using phonegap/cordova. in this, want implement fb login , logout without using fb javascript sdk

fb login implemented. i'm not able implement logout.

here code of logout

function logout() {      $.get("http://m.facebook.com/logout.php", {             confirm: "1",             next: "http://localhost/dogroups_fork/www/callback.html"         })         .success(function(data) {             console.log("fb :: ", data);         }); 

but isn't working, instead giving me whole fb page in response. correct way implement using logout url provided fb.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -