Hello! I'll be brief. I'm having problems on 000webhost.com server. Upload my test site to check how the facebook login would look on the air. The error is this:
Warning: include (/storage/ssd2/781/3154781/public_html/lib/Facebook/autoload.php): failed to open stream: No such file or directory in /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 6
Warning: include (): Failed opening '/storage/ssd2/781/3154781/public_html/lib/Facebook/autoload.php' for inclusion (include_path = '.: / usr / share / pear: / usr / share / php') in /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 6
Fatal error: Uncaught Error: Class 'Facebook \ Facebook' not found in /storage/ssd2/781/3154781/public_html/users/loginFace.php:10 Stack trace: # 0 /storage/ssd2/781/3154781/public_html/index.php(2): include_once () # 1 {main} thrown in /storage/ssd2/781/3154781/public_html/users/loginFace.php on line 10
Part of the code where the error occurs:
if(!isset($_SESSION)) {
session_start();
}
include($_SERVER['DOCUMENT_ROOT'].'/lib/Facebook/autoload.php');
/*require('../lib/Facebook/autoload.php');*/
unset($_SESSION['face_access_token']);
$fb = new \Facebook\Facebook([
'app_id' => '1511055948960318' ,
'app_secret' => '710b34a0395d103abdbfe8909878e82e' ,
'default_graph_version ' => ' v2.9 ' ,
// ' Default_access_token '=>' {access-token} ', // opcional
]);
The code on the Wamp server works perfectly. All folders and subfolders are correct. can anybody help me? Thanks!