title: setAccessToken() isn't working in the FB's PHP SDK
body: <pre><code>require 'facebook/facebook.php';
  require 'config/fbconfig.php';
  require 'config/functions.php';
  
  include dirname(__FILE__) . "/includes/session.php";
  
  $facebook = new Facebook(array(
      'appId' =&gt; ".....",
      'secret' =&gt; ".....",
  ));
  
  //token variable is "false" if there no access_token
  if($_POST['token'] != "false")   
       $facebook-&gt;setAccessToken($_POST['token']);
  </code></pre>
  
  <p>I am passing <code>access_token</code> using Ajax. The call to <code>setAccessToken()</code> functions seems valid as shown in the docs but it returns an undefined method error. I am sure that the token is valid as I checked it in Facebook's debugger.</p>
  
  <p><strong>Update</strong>: I just did <code>var_dump()</code> on the <code>$facebook</code> and it's a valid Facebook object. So the error is probably not here. </p>