i\'m trying to get Facebook user id using the php sdk like this
$fb = new Facebook\\Facebook([ \'app_id\' => \'11111111111\', \'app_secret\' =>
Easy fix for me. I changed:
$loginUrl = $helper->getLoginUrl('http://www.MYWEBSITE.ca/index_callback.php', $permissions);
to:
$loginUrl = $helper->getLoginUrl('http://MYWEBSITE.ca/index_callback.php', $permissions);
removing the 'www' solved the problem.
'www'