Q:

User_ID on Fan Page

I am trying to access the users_id for the current user on one of my tabs.
I have tried the majority of the methods in the posts on here but to no avail...
I know I can find the param in here 
print_r(parse_signed_request($_REQUEST['signed_request'],APP_SECRET)) ;

But I need to do some auth on the fan page. Does anyone know how to bring up the auth dialog in a popup using the PHP SDK?
For reference, its being done on this page. http://www.facebook.com/willitblend?sk=app_107727025983833
Thanks
Shane

A:

The PHP SDK only provides a method to get the login link for a user, redirecting them to another page where the Auth Dialog appears.
I usually do it with the help of the JavaScript SDK, which has a method for checking if the user is logged in, and showing the popup if they aren't.
Check FB.getLoginStatus() and FB.login()

