I don't see much with code. However, there are a few things that are different from mine.
$facebook = new Facebook(array(
'appId' => '****************',
'secret' => '*************************',
'cookie' => true,
));
$session = $facebook->getSession();
$me = null;
if ($session) {
try {
$uid = $facebook->getUser();
$me = $facebook->api('/me');
}
catch (FacebookApiException $e) {
error_log($e);
}
}
And in general, do you use $me? Make sure you specify $logoutUrland $loginUrl.
Are any errors displayed?
Hope this helps!
source
share