I’m wanting to learn how to write facebook app with php, herez the codes:
<?php
require_once('facebook/src/facebook.php');
$appapikey = 'xxxxxxxxxxxx';
$appsecret = 'xxxxxxxxxxxx';
$facebook = new Facebook($appapikey, $appsecret);
$user=$facebook->getUser();
?>
<html>
<head>
<title>Test</title>
</head>
<body>
<?php echo $user; ?>Test
</body>
</html>
you can see the app here, https://apps.facebook.com/noorphp, I’m wanting to see <userId>Test but I’m seeing only 0Test
So, I’m not getting the userid
Well still showing me 404 error please check if you’ve restriction for any country but for me this code works