Basically I would like to know if my visitor is already a fan of my Facebook Page or not.
I tried looking a while and pages.isFan is the best solution so far.
http://developers.facebook.com/docs/reference/rest/pages.isFan/
But pages.isFan need user id (uid), which I can only get if they installed or grant access to my Facebook apps.
My question is, is there a way just to get the uid of my visiting user without ask them to grant access to my Facebook apps?
This code should do the trick: