title: facebook logout API - Why Next?
body: <p>I'm writing a Windows Phone 7 app and have gotten Facebook login working using the C# sdk, but logging out has proven interesting.  I've read this post:</p>
  
  <p><a href="https://stackoverflow.com/questions/6394223/cannot-logout-of-facebook-with-facebook-c-sharp-sdk">Cannot Logout of Facebook with Facebook C# SDK</a></p>
  
  <p>which seems to mirror the FB docs which indicate I should navigate to </p>
  
  <p><a href="https://www.facebook.com/logout.php?next=[redirect_uri]&amp;access_token=[token]" rel="nofollow noreferrer">https://www.facebook.com/logout.php?next=[redirect_uri]&amp;access_token=[token]</a></p>
  
  <p>However, that doesn't work and silently redirects me back to the facebook home page.  </p>
  
  <p>My best guess at the moment is facebook doesn't like the "next" URI I'm providing.  I updated my FB app settings but either they haven't propagated yet, or something else is still not working.</p>
  
  <p>I've seen posts recommending using InternetSetOption, but that API is not available on the phone.</p>
  
  <p>In my application flow, logout leads to navigating to a different silverlight page in my app, so I really don't need the browser redirect for my purpose anyway, so I could just "forget" the access token without actually telling FB to invalidate it, but that seems weak and insecure.  </p>
  
  <p>So, while I wait longer to see if the app domain changes propagate across FB's servers and solve the problem I have a different question:</p>
  
  <p>Why should the Facebook APIs care whether I provide "next" or not?  Shouldn't I just be able to tell them to invalidate a token and have it happen? </p>
  
  <p>Is there a logic piece I'm missing here?</p>
  
  <p>Thanks!</p>