I am trying to determine if a user is a facebook fan. I load the facebook JS library and initialize:
Please note that @daaku's answer is true only in two cases:
user_likes permission orSource:
Note: This call no longer requires a session key. You must pass a user ID if you don't pass a session key. If the user's pages are set to less than everyone privacy, you must ask the user for the user_likes extended permission and include a valid user access token in the API call.
Try this code to better understand:
Working example.
I've also written a full tutorial about this today.