\'130407366991766\',
\'secret\' => \'**
I had exactly the same problem. My whole app was broken because getSession() was no longer functioning.
I downloaded the latest version of the PHP SDK and used the example to initialize the user session.
Basically, the session is initialized as soon as you create the Facebook object. So from the example code, when you call.
$facebook = new Facebook(array(
'appId' => '191149314281714',
'secret' => '73b67bf1c825fa47efae70a46c18906b',
));
You already have a session. To get the user ID, you just call:
$uid = $facebook->getUser();
If the result of that call is 0
, then the user is not logged in.