我已经将我的文件从本地环境切换到我的 vps,现在我的 facebook 通知不起作用,即使我很确定我已经正确更新了所有路径。我已经尝试过多种方式编写 require 路径。我正在从 jquery 到发送 facebook 通知的 php 页面执行“$.post”,并且收到此错误:
<b>Fatal error</b>: Class 'Facebook' not found in
<b>/home/zjkkvcxc/public_html/accepted.php</b> on line <b>9</b><br />
//THIS IS MY PHP REQUIRE PATH.
require_once('php-sdk/facebook.php') ;
//IN MY LOCAL ENVIRONMENT I WAS USING THIS PATH BECAUSE IT WAS THE ONLY ONE THAT WORKED. THIS DOESN'T WORK ON MY VPS THOUGH.
require_once(dirname(__FILE__).'/php-sdk/facebook.php') ;