I'm a newbie to Facebook app development. It almost works when the page liked.php
is shown (it's shown when a user liked the site), the PHP code is displayed as text output.
my liked.php
code:
deleted for privacy reasons
?>
Here's the output(it's shown as blank text):
I simply don't know why. Even the error_reporting(E_ALL)
; doesn't show anything. Simply blank text output. I use the newest facebook php sdk.
Sounds like you either don't have PHP installed or you're not using a file extension which invokes the PHP engine - is your file called
[Blah].php
?Some things to check:
<?php phpinfo(); ?>
and serving it should give you lots of info about your PHP install.I guess the problem is not in the code but in the configuration of your server. You need to tell the server to execute the php code instead of displaying it.