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

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -