title: Facebook API Logout of my app but not facebook
body: <p>How do I make a logout using Facebook's api log me out of my app (a website), but keep me logged into facebook.com?</p>
  
  <p>This logs me in alright:</p>
  
  <pre><code> window.fbAsyncInit = function()
  {
          FB.init({
              appId      : '&lt;?= APP_ID ?&gt;',
              status     : true, 
              cookie     : true,
              xfbml      : true,
              oauth      : true,
          });
  
      FB.Event.subscribe('auth.login', function(response)
      {alert(response);
              window.location = 'http://reviewsie.com/accounts/facebook';
          });
  
      };
  
    (function(d)
  {
          var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
          js = d.createElement('script'); js.id = id; js.async = true;
          js.src = "//connect.facebook.net/en_US/all.js";
          d.getElementsByTagName('head')[0].appendChild(js);
      }(document));
  </code></pre>
  
  <p>But then I click logout on my site which I kill my session to my app. Then when you click on the fb:login-button again, it just opens and closes and doesn't do anything because I'm still connected to facebook. I want it to redirect.</p>
  
  <p>But if when I logout I also use Facebook::logoutUrl it logs me out of my app AND facebook which is not what I want.</p>