XAMPP 1.7.3
MacOSX 10.6.8
Facebook PHP SDK (v.3.2.2)
There are many questions and answers regarding this issue. But none of them seems to work for me. Maybe I am misunderstanding something.
define('FACEBOOK_APP_ID', '');
define('FACEBOOK_APP_SECRET', '');
$facebook = new Facebook(array(
'appId' => FACEBOOK_APP_ID,
'secret' => FACEBOOK_APP_SECRET,
));
$fb_user_id = $facebook->getUser();
returns 0
the facebook app is NOT sandboxed.
I am guessing version conflicts.
Does anyone have any idea?