title: How do I exit a FB app in PHP?
body: <p>When in a FB app I want to press an html button and exit the app and go to the main FB page.</p>
  
  <p>It's like a redirect. I tried the following:</p>
  
  <pre><code> &lt;form name="quit" action="redirectMainPage.php"&gt; 
        &lt;button class="quit" type="submit"&gt;Quit&lt;/button&gt;
   &lt;/form&gt;
  </code></pre>
  
  <p>and in the redirectMainPage.php there is:</p>
  
  <pre><code>&lt;?php
      header('Location: https://www.facebook.com') ;
  ?&gt;
  </code></pre>
  
  <p>When I do this, I stay in a blank page in my own app: <a href="https://apps.facebook.com/my_app/" rel="nofollow">https://apps.facebook.com/my_app/</a></p>
  
  <p>I think this is fairly easy to do, but I'm stuck on this for a while and already out of ideas.</p>