title: Facebook Fan Gate - Displaying the 'Reveal" Content
body: <p>I'm trying to add a fan gate to my page, and I can get the "pre-like" content to show, but after I like the page - the post-like content isn't showing up. It shows the same pre-like content, regardless of whether I like the page or not.</p>
  
  <p>This is the code I'm using in my index.php file...</p>
  
  <p><code>
  
  
  <pre><code> require 'facebook.php';
   $app_id = "myappid";
   $app_secret = "myappsecret";
   $facebook = new Facebook(array(
   'appId' =&gt; $app_id,
   'secret' =&gt; $app_secret,
   'cookie' =&gt; true
   ));
  
   $signed_request = $facebook-&gt;getSignedRequest();
  
   $page_id = $signed_request["page"]["id"];
   $page_admin = $signed_request["page"]["admin"];
   $like_status = $signed_request["page"]["liked"];
   $country = $signed_request["user"]["country"];
   $locale = $signed_request["user"]["locale"];
  
   // If a fan is on your page
   if ($like_status) {
   $a = file_get_contents("dolike.html");
   echo ($a);
   } else {
   // If a non-fan is on your page
   $a = file_get_contents("dontlike.html");
   echo ($a);
   }
  
   ?&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>I've looked at half-dozen examples, and they're all essentially the same (with a few variants, some use images over html, some use the html in the same page), but none of them show the post-like content.</p>
  
  <p>I removed the app id and secret from the code, though I do have them and have been using them.</p>
  
  <p>Any help'd be awesome.</p>