I need to make an PHP application where anybody can define a page name and get the public information of that page, specifically the followers count.
For example, Google's Facebook page (https://www.facebook.com/Google/) has 28.318.253 likes and 33.390.596 followers. How can I, programatically, get those numbers?
I want my final code to look something like this:
$page = "google";
// Some code logic, API calls or anything else
$likes = $pageData->likes_count;
$followers = $pageData->followers_count;
echo $likes; // Should output "28318253"
echo $followers; // Should output "33390596"