title: How to get the Page Id in my Facebook Application page
body: <p>I have my application is hosted in FaceBook as a tab and I want to get the page ID when my application is being added to be stored in my logic. 
  How can I get the page ID, I know it is stored in the URL but when I tried to get it from the page as a server variable, I am not getting it even my application is configured as <code>iFrame</code> ? But this is a standard way to get the parent URL.</p>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>string t= request.serverVariables("HTTP_REFERER");
  
  //doesn't get FB page url even if your app is configured as iframe ?!! @csharpsdk #facebook devs
  </code></pre>
  
  <p>Any help ?</p>
  
  <p>Thanks a lot.</p>