I was wondering if there is a way, using the Graph API, to check if a specific user likes a specific Facebook Page. I know this can be done post-Authentication, but what about if I don't use Facebook Connect. Can I somehow check this?
You can try the FQL query statement. $likeID = $facebook->api( array( 'method' => 'fql.query', 'query' => "SELECT source_id FROM connection WHERE source_id ='$user[id]' AND target_id = '$pageId'" ) ); if($likeID){ echo "User has liked the page"; }else{ echo "User hasn't liked the page yet"; } Code (markup):
if you know the user id then use this api pages.isFan http://developers.facebook.com/docs/reference/rest/pages.isFan/
Agreed, FQL.query is the way forward. Just make sure that you cache the result, otherwise you'll spend all day wasting API calls and, no doubt, having some failures.