title: How to get the if the Page is Liked in my Facebook Application page
body: <p>I'm using the Facebook sdk from codeplex </p>
  
  <p>I've tried the suggestion at <a href="https://stackoverflow.com/questions/5567250/how-to-get-the-page-id-in-my-facebook-application-page">How to get the Page Id in my Facebook Application page</a></p>
  
  <p>which is this:</p>
  
  <pre><code> if (FacebookWebContext.Current.SignedRequest != null) 
  {   
  dynamic data = FacebookWebContext.Current.SignedRequest.Data; 
  if (data.page != null)   
  {
          var pageId = (String)data.page.id;
          var isUserAdmin = (Boolean)data.page.admin;
          var userLikesPage = (Boolean)data.page.liked; 
    }  
    else 
    {
          // not on a page  
    } 
  }
  </code></pre>
  
  <p>But my data.page is null. </p>
  
  <p>Do I need to ask for some extra permissions on the authorization or something? </p>
  
  <p>Also tried this the FQL suggested at 
  <a href="http://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/" rel="nofollow noreferrer">http://blog.woodylabs.com/2010/09/facebook-graph-api-is-user-a-fan-of-page-id-using-fql-and-opengraph-to-mimic-pages-isfan/</a></p>
  
  <p>But I only have an appId not a page ID. </p>
  
  <p>Any ideas? </p>