PHP SDK in secured app version
===

I have facebook app on two different FTP servers, because of http and https address. There is a same code on both places. Unsecured version works fine, but secured version doesnt.<br>PHP SDK can get the current user ID, but api doesnt load more informations.<br>
The source code is:<br>

    <?php
    require 'src/facebook.php';
    $config = array(
    'appId'  => '.......',
    'secret' => '............',
    );
    $facebook = new Facebook($config);
    $user = $facebook->getUser();
    echo $user;
    $user_profile = $facebook->api('/'.$user,'GET');
            echo "Name: " . $user_profile['name'];
    if ($user) {
      $logoutUrl = $facebook->getLogoutUrl();
    } else {
      $loginUrl = $facebook->getLoginUrl();
    }
    ?>
    <!doctype html>
    <html xmlns:fb="http://www.facebook.com/2008/fbml">
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>php-sdk</title>
      </head>
      <body>  
        <div style="width:760px;height:600px;background-position: 50% 50%;background-image:     url('images/preloader.gif');background-repeat: no-repeat;">
        </div>
        <?php  
    if ($user) {
      try {
          $statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> 'je to na     zdi', 'cb' => ''));
      } catch (FacebookApiException $e) {
          echo $e;
      }
    }
        ?>
      </body>
    </html>

<br>
Application is here: [https://apps.facebook.com/chcitozmenit/][1]


  [1]: https://apps.facebook.com/chcitozmenit/