title: $facebook->getUser() suddenly stopped working
body: <p>I've got a login with facebook on my website. This has worked well for some time but yesterday suddenly stopped working. I've tracked the problem to the getUser() method which seems to always returns 0 now.</p>
  
  <p>my code looks like:</p>
  
  <pre><code>&lt;?php
  require_once('facebook.php');
  
  $facebook = new Facebook(array(
    'appId'  =&gt; 'xxxxxxxxxxxxx',
    'secret' =&gt; 'xxxxxxxxxxxxxxxxxxxxxxxxxx'
  ));
  
  $user = $facebook-&gt;getUser();
  if ($user) {
    try {
      $profile = $facebook-&gt;api('/me');
      $logoutUrl = $facebook-&gt;getLogoutUrl(
          array(
              'next'=&gt;$baseUrl.'/fblogin/fblogin.php?logout'
          )
      );
      $userIsLoggedIn=true;
  
    } catch (FacebookApiException $e) {
      echo '&lt;pre&gt;'.htmlspecialchars(print_r($e, true)).'&lt;/pre&gt;';
      $user = null;
      $loginUrl = $facebook-&gt;getLoginUrl(
          array(
              'scope'=&gt;'email,publish_stream',
              'redirect_uri'=&gt;$returnAfterLoginUrl
          )
      );
    }
  }else{
      $loginUrl = $facebook-&gt;getLoginUrl(
          array(
              'scope'=&gt;'email,publish_stream',
              'redirect_uri'=&gt;$returnAfterLoginUrl
          )
      );
  }
  ?&gt;
  </code></pre>
  
  <p><strong>What I've tried (and could find back in my history)</strong></p>
  
  <ol>
  <li>Update the SDK to the latest version</li>
  <li>Solution of <a href="https://stackoverflow.com/questions/13589510/facebook-php-sdk-getuser-suddenly-returns-0">Facebook PHP SDK - getUser() suddenly returns 0</a> (adding 2 $CURL_OPTS)</li>
  <li>Solution of <a href="https://stackoverflow.com/questions/8587098/suddenly-getuser-became-to-return-0-php-3-1-1-sdk">suddenly, getUser became to return 0.(PHP 3.1.1 SDK)</a> (adding base_domain to $DROP_QUERY_PARAMS)</li>
  <li>Solution of <a href="https://stackoverflow.com/questions/10234783/facebook-login-is-suddenly-not-working-anymore?rq=1">Facebook login is suddenly not working anymore?</a> (increasing curlopt_connecttimeout)</li>
  <li>Creating a new app, without luck</li>
  </ol>
  
  <p>I'm using PHP Version 5.3.3</p>
  
  <p>I've been trying to get it working since yesterday afternoon, without any luck :(</p>
  
  <p>Does anyone know what might be the problem and more importantly, what might be the solution?</p>
  
  <p>Thank you</p>