0
私はこのコードを数十種類の公開タブに使用していますが、今は動作を停止しています。私はhttpsページの修正を見つけましたが、その修正はhttpページでは機能しません。以下のコードをご覧ください。具体的な助けがあれば助かります。これまで動作していたRevealタブのindex.phpコードは表示されません。どうすれば修正できますか?
<?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);
}
?>
私は決してコーダーではありません。実際のコード修正であなたの反応を具体的にしてください。そうでなければ、私の限られた脳の上を飛び立つでしょう。あなたの答えは恐ろしいほどです。
ありがとうございます!