PHP iframe app - App doesn't load content for "normal" users, but for "admin"
===

I just wrote a very simple PHP-script for an fanpage. As I tested it out, the script works fine for me. Other users complain, that they see only a blank page.

    <?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'>";}
    ?>

Do you have any idea where I made a mistake?

Cheers,

Ben


