Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://www.apa.com';
- $xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=links.getStats&urls=".$url);
- $hitungshare = $xml->link_stat->share_count; //share count
- // $hitunglike = $xml->link_stat->like_count; //like count
- if (empty($hitungshare)) {
- $hitungshare = 0;
- }
- /* if (empty($hitunglike)) {
- $hitunglike =0;
- }*/
- $jum = $hitungshare ;
- echo $jum;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement