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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -