title: PHP Fatal error: Class 'Facebook' not found in
body: <p>PHP Fatal error:  Class 'Facebook' not found in /mnt/releases/server/asrivastava/first-task/390f5294f2b74ffbbe729e1ce9773c39573973b8/public/subscribe.php on line 36</p>
  
  <pre><code>&lt;?php
  try{
      include_once "./php-sdk/src/facebook.php";
  }
  catch(Exception $o){
      echo '&lt;pre&gt;';
      print_r($o);
      echo '&lt;/pre&gt;';
  }
  
  error_log("Subscribe.php");
  error_log("included facebook classes");
  define ("FB_APPID" ,"APPID") ;
  define ("FB_SECRET", "KEY");
  define ("VERIFY_TOKEN" ,"myFirstFB");
  
  $access_token = "MyAccessToken";
  $user = array(
          "first_name",
          "last_name"
      ) ;
  $param = array('access_token' =&gt; $access_token,
          'object' =&gt; 'user',
          'fields' =&gt; 'name, feed, likes',
       //   'callback_url' =&gt; 'http://apps.facebook.com./handleCallBack.php',
          'callback_url' =&gt; 'SomeUrl',
          'verify_token' =&gt; VERIFY_TOKEN
  );
  $config = array ('appId' =&gt; FB_APPID, 'secret' =&gt; FB_SECRET);
      error_log("Created FB object");
  $fb = new Facebook($config);
  Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false;
  error_log("made curl call");
  try {
  
  $subs = $fb-&gt;api('/'.APP_ID.'/subscriptions', 'POST', $param);
  var_dump($subs);
  } catch (FacebookApiException $e) {
      echo $e-&gt;getCode()." ".$e-&gt;getType()." ".$e-&gt;getMessage()." ".$e-&gt;getFile()." ".$e-                  &gt;getLine()."\n";
  }
  
  
  ?&gt;
  </code></pre>
  
  <p>Now whenever I hit this URL I get the error metioned above.
  kindly suggest me a way through it please.</p>
  
  <p>Error Log :</p>
  
  <p>[Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] Subscribe.php
  [Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] included facebook classes
  [Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] Created FB object
  [Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] PHP Fatal error:  Class 'Facebook' not found in /mnt/releases/server/asrivastava/first-task/390f5294f2b74ffbbe729e1ce9773c39573973b8/public/subscribe.php on line 36
  [Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] PHP Stack trace:
  [Mon Apr 16 06:51:02 2012] [error] [client 172.20.2.144] PHP   1. {main}() /mnt/releases/server/asrivastava/first-task/390f5294f2b74ffbbe729e1ce9773c39573973b8/public/subscribe.php:0
  [Mon Apr 16 06:51:06 2012] [error] [client 172.20.2.144] File does not exist: /var/www/server_releases/asrivastava/first-task/flash,</p>