Facebook sdk getUser() returns 0

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Facebook sdk getUser() returns 0

Postby soujiro0725 » 31. March 2013 06:15

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?
soujiro0725
 
Posts: 2
Joined: 14. March 2013 09:44
Operating System: MacOSX 10.6.8

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 7 guests