Advertisement
Guest User

Huhu

a guest
Dec 18th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2.  $url = 'http://www.apa.com';
  3. $xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=links.getStats&urls=".$url);
  4.                         $hitungshare = $xml->link_stat->share_count; //share count              
  5.                     //    $hitunglike = $xml->link_stat->like_count; //like count  
  6.                         if (empty($hitungshare)) {
  7.                                 $hitungshare = 0;
  8.                         }            
  9.                       /*  if (empty($hitunglike)) {
  10.                                 $hitunglike =0;
  11.                         }*/            
  12.                         $jum = $hitungshare ;
  13.             echo $jum;
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement