I am using Facebook authentication in my application.it's working but fine when i am click on logout button it is not working.why,because Facebook is not logout.
here my problem is when i am click on logout in my application logout the Facebook as well as my application.
here is my code:
<script type="text/javascript">
// Load the SDK Asynchronously
(function (d) {
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) { return; }
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
} (document));
// Init the SDK upon load
window.fbAsyncInit = function () {
FB.init({
appId: '12458126332656', // App ID
channelUrl: '/ ...
Go to the complete details ...