$facebook = new Facebook(array(
'appId' => '<key>',
'secret' => '<secret code>',
'cookie' => true
));
print_r($facebook);die;
Output of this is
Facebook Object
(
[appId:protected] => <key>
[apiSecret:protected] => <secret code>
[session:protected] =>
[signedRequest:protected] =>
[sessionLoaded:protected] =>
[cookieSupport:protected] => 1
[baseDomain:protected] =>
[fileUploadSupport:protected] =>
)
This problems occur in the end of October only as before that it always prints information of session. Then I call link https://api.facebook.com/method/photos.getAlbums?uid='.$session['uid'].'&access_token='.$session['access_token']
and used to get list of albums.
This works fine for more than 8 months and suddenly from last month it stopped working.