my problem is:
I downloaded Facebook Php SDK from: https://github.com/facebook/facebook-php-sdk
I put all in a folder an created my index in this way:
myAppFolder:
- src
- index.php
In my index.php I tried this code:
require_once("src/facebook.php");
$facebook = new Facebook(array('appId' => 666, 'secret' => 616));
die("why not zoidberg?");
But my app doesn’t die and doesn’t return anything, some ideas?
Next I tried this code, but only the first echo is displayed:
<?php
echo "This is visible";
try{
require_once "src/facebook.php";
$facebook = new Facebook(array(
'appId' => '666',
'secret' => '616',
));
}catch(ErrorException $e){
echo error_reporting(E_ALL);
die(var_dump($e));
}
die("This is not visible");
My output is:
This is visible
Resolved, I didn’t have Json and Curl installed 😉