title: How to detect Facebook oauth window closed action from user
body: <p>I am trying to figure if there is any way to notify the parent page when user either closes or clicks on cancel button on Facebook permissions window during oauth flow. Its the window where user authorizes an app. The window with url: <a href="https://www.facebook.com/dialog/oauth?api_key=" rel="nofollow">https://www.facebook.com/dialog/oauth?api_key=</a>..... and with "Login with Facebook" and "Cancel" buttons. What I am trying to accomplish is-- If user cancels or closes the oauth permissions window, I would like to open Facebook simple sharing window where they can post status without authorizing the app. </p>
  
  <p>I am using JS SDK for Facebook connect.</p>