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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -