Skip to content

Instantly share code, notes, and snippets.

@mloza mloza/facebook-likes.php
Last active Oct 2, 2019

What would you like to do?
$source_url = '';
$url = "".urlencode($source_url);
$xml = file_get_contents($url); $xml = simplexml_load_string($xml);
$shares = $xml->link_stat->share_count; // Liczba share
$likes = $xml->link_stat->like_count; // Liczba like
$comments = $xml->link_stat->comment_count; // Liczba komentarzy
$total = $xml->link_stat->total_count; // Sumarycznie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.