ファンページ用の非常に単純な PHP スクリプトを作成しました。テストしたところ、スクリプトは問題なく動作します。他のユーザーは、空白のページしか表示されないと不満を漏らしています。
<?php
require_once 'facebook.php';
$app_id = "xxx";
$app_secret = "xxx";
$facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true ));
$signed_request = $facebook -> getSignedRequest();
$country = $signed_request["user"]["country"];
$locale = $signed_request["user"]["locale"];
if($locale == "de_DE") {
echo "<img src='1.jpg'>";}
else {
echo "<img src='2.jpg'>";}
?>
私がどこで間違いを犯したか分かりますか?
乾杯、
ベン