I’ve located a method of retrieving an XML file online via api.facebook.com which contains the number of likes a given page has received. For example:
However, I’m not sure how I can parse that XML in my PHP application to then extract the ‘like’ number and place it into a variable to use myself.
You can use the built-in simplexml_load_file() but since it doesn’t work with HTTPS you can use CURL and simplexml_load_string() function.