I'm working on an application that uses FB javascript SDK to login. On the server side, I need to do some processing, so I use the following settings:
$config = array(
'appId' => '45....',
'secret' => '31.....c1',
'cookie' => true,
'fileUpload' => false,
'allowSignedRequest' => false);
$facebook = new Facebook($config);
So as you see, I re-login to facebook on the server side in order to use the graph API functions otherwise facebook returns an error saying that I need to have an access token to perform this operation. I'm wondering if I'm doing the right thing here ... Do i really need to login from the server side too? Or is there a way for the server to know that the user is logged in from the client side (using JS SKD) so I can perform the operations?