Get Facebook Likes Count of a page using Graph API

Sometimes, being a programmer we may come across a need of a snippet where we have to show the count of likes of a Facebook page. This small code snippet given below uses FaceBook’s graph api and returns the likes count of the page. There is no need to have the FaceBook access token to call the api and get the result.

Remember, this only gives the count and not the persons who liked the page.

That’s it. Next tutorial explains how to get Facebook profile picture with custom dimensions

  • Lakshman

    Very nice, thanks alot