title: How to logout from facebook or destroy an active session using php?
body: <p>I have an application which asks for a registration through facebook but before a user can proceed to the registration, the system should first determine if there is an <strong>active session</strong>. If a user is logged in to <strong>facebook</strong>, it should then automatically logout for a fresh start.</p>
  
  <p>But here is where I'm stuck. The SDKs only let the user log out from facebook if he is connected to your app. It uses the app's access token. But what if he is still not registered to your app? Their log out means to log out from your app, and not really from facebook.</p>
  
  <p><strong>My requirement :</strong></p>
  
  <p><strong>1.</strong> How can i log out from facebook.</p>
  
  <p><strong>2.</strong> How can i clear the browser cookies?</p>
  
  <p><strong>Not on a specific app but the whole facebook session.</strong></p>