Question:

How to find out if a user has liked (is a fan of) a page?

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

To check if a user has liked (is a fan of) a page, possible ways include:

  • Using the following FQL statement:
 SELECT is_following FROM connection WHERE source_id = me() AND target_id = target_page_id
  • remember to replace the "target_page_id" with the numeric page id of page you want to check.
  • Checking if the target page ID exist in the list of pages that the user has liked returned from the following graph API query:
/me/likes?fields=id  

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!