Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8612675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:41:11+00:00 2026-06-12T04:41:11+00:00

PHP Fatal error: Class ‘Facebook’ not found in /mnt/releases/server/asrivastava/first-task/390f5294f2b74ffbbe729e1ce9773c39573973b8/public/subscribe.php on line 36 <?php try{

  • 0

PHP Fatal error: Class ‘Facebook’ not found in /mnt/releases/server/asrivastava/first-task/390f5294f2b74ffbbe729e1ce9773c39573973b8/public/subscribe.php on line 36

<?php
try{
    include_once "./php-sdk/src/facebook.php";
}
catch(Exception $o){
    echo '<pre>';
    print_r($o);
    echo '</pre>';
}

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' => $access_token,
        'object' => 'user',
        'fields' => 'name, feed, likes',
     //   'callback_url' => 'http://apps.facebook.com./handleCallBack.php',
        'callback_url' => 'SomeUrl',
        'verify_token' => VERIFY_TOKEN
);
$config = array ('appId' => FB_APPID, 'secret' => 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->api('/'.APP_ID.'/subscriptions', 'POST', $param);
var_dump($subs);
} catch (FacebookApiException $e) {
    echo $e->getCode()." ".$e->getType()." ".$e->getMessage()." ".$e->getFile()." ".$e-                  >getLine()."\n";
}


?>

Now whenever I hit this URL I get the error metioned above.
kindly suggest me a way through it please.

Error Log :

[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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:41:12+00:00Added an answer on June 12, 2026 at 4:41 am

    I had same problem.
    Here’s what I did wrong that you might have done:

    When I went to this page:
    https://github.com/facebook/facebook-php-sdk/tree/master/src
    to download facebook.php, base_facebook.php, etc.

    I right-clicked and did “Save Link As” not realizing that I wasn’t saving what I thought I was saving.

    SOLUTION: click those links and THEN copy and paste the code into facebook.php, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ErrorException [ Fatal Error ]: Class 'Model_Categories' not found MODPATH/orm/classes/kohana/orm.php [ 37 ] 32
With include('basemodel.php'); I get Fatal error: Class 'BaseModel' not found in C:\xampp\htdocs\allsides\account\model.php on line
Possible Duplicate: WAMP Stack PHP Fatal error: Class ‘SoapClient’ not found I downloaded a
Fatal error: Class 'FacebookInfo' not found in C:\xampp\htdocs\cake21\app\Lib\fb.php on line 22 Can someone help
Fatal error: Class 'Application_Models_Users' not found in C:\xampp\htdocs\intern\lc.intern\application\controllers\AuthController.php on line 44 But Application_Models_Users class
Fatal error: Class 'h1' not found in /home/iracersr/public_html/atk4/lib/AbstractObject.php on line 131 I have installed
I'm getting Fatal error: Class 'Form_Login' not found in /route/to/project/application/controllers/AuthController.php on line XX when
Fatal error: Class 'Controller' not found in <local_path>\system\application\controllers\welcome.php on line 3 <?php class Welcome
it shows: Fatal error: Class 'Mage_Adminhtml_Controller_action' not found in .../app/code/local/Magentix/SocialBookmarking/controllers/Adminhtml/BookmarksController.php on line 4 I
What could be the possible reason for getting Fatal error: Class 'Zend_Form_Subform' not found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.