After connecting with facebook we have to run something like this:
private function getFacebookData($username) {
try{
$counter = $this->adapter->api()->api($username."/subscribers")["summary"]["total_count"];
return "Number of followers is: ".$counter;
}
catch( Exception $e ){
return( "<b>got an error!</b> " . $e->getMessage() );
}
}