Facebook: How to know if user already LIKED an FB Page/App


I was wondering if there is anyway I can know if a User has LIKED an FB page or an FB App using the PHP SDK?

Any help would be appreciated.


PS: Googling didnt help

You can use an FQL query. Check this page:


I tried hard to run it but could not succeed. Can you please describe briefly here. It will help many of us.