New version of the PHP SDK

Hi all

I am using the new version of version 3.0 of the PHP SDK here instead of $ facebook-> getSession () we use Facebook $-> getUser () If you have already connected to Facebook rules the same browser it returns 0 in all cases if the user is already authenticated, the application, and then still it returns 0.

If the user clicks the url in full Board on my site, and then after returning from the full Board it returns the correct user ID and the private.

Is it possible if user is already logged on, and then we receive details to friends without redirecting the user, show him connected if it is already authenticated application like v2.0 do Facebook $-> getSession ().

Its local application and I have created a virtual host, that is dev.fbinvite.in and in the same url.

Any help or suggestions be but appreciated.

Thank you