I am trying to create my first FB application and does not seem to work. I am new to PHP, but I followed the instructions for writing. I installed the facebook client library on my server. Then I copied the sample code provided by Facebook, and all I get is a blank page. However, if I include only simple PHP commands, such as the following, everything works fine.
echo 'hello';
If I then add another command, for example
require_once 'facebook.php';
I get a blank page again. But if I write a command as follows
include_once ('/facebook.php');
I still get hello on the page. But these are the only pieces of code that seem to work. If I add the following few lines of sample code
$appapikey = '12345etc'; $appsecret = '12345etc'; $facebook = Facebook ($ appapikey, $appsecret); $user_id = $facebook- > require_login();
.