title: how to reload top most window from iframe?
body: <p>I'm developing a facebook app which has the following "structure":</p>
  
  <pre><code>Browser window (facebook.com/page/xxxx)
    -- My app's iframe
      -- Like button's iframe
  </code></pre>
  
  <p>I'm using a Like button within my app so that's an iframe inside an iframe, when the users clicks on the like button I'd like to show the content so the page currently looks somethin like this:</p>
  
  <pre><code>if ( is_fan() ) {
      //show content
  } else {
      //show like button plus other text
  }
  </code></pre>
  
  <p>The actual logic to check if the user is already a fan is working as intended, the problem is that when I click the like button I need the whole page to reload in order to show the "fan content", if I do this:</p>
  
  <pre><code>FB.Event.subscribe('edge.create', function(href, widget) {
      top.location.reload();
  });
  </code></pre>
  
  <p>The page seems to reload but everything stays the same, but if I click "Like" and the click the refresh button in my browser everything shows up just fine.</p>
  
  <p>Can anyone help me figure this out?</p>
  
  <p>Thanks in advance!</p>