显示选项卡index.php代码,以前不能工作,现在不能.我怎么修理


Reveal tab index.php code that used to work doesn't now. How do I fix?

我已经将这段代码用于几十个显示选项卡,现在它们已经停止工作了。我已经找到了https页面的修复,但该修复不适用于http页面。请参阅下面的代码,任何具体的帮助将是伟大的。

    <?php
     require 'facebook.php';
     $app_id = "APP_ID";
     $app_secret = "APP_SECRET";
     $facebook = new Facebook(array(
     'appId' => $app_id,
     'secret' => $app_secret,
     'cookie' => true
     ));
     $signed_request = $facebook->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("yourlikepage.html");
     echo ($a);
     } else {
     // If a non-fan is on your page
     $a = file_get_contents("yournolikepage.html");
     echo ($a);
     }
     ?>

我绝不是一个程序员。请在你的回应中具体说明实际的代码修复,否则很可能你的答案,就像它一样棒,将在我有限的大脑中翱翔。

谢谢!

作为一个有限的大脑到另一个,我只是想再次检查你是否真的输入了你的应用程序ID和应用程序秘密。我希望这不是一个愚蠢的问题——你会感到惊讶的!