Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getFacebookStats() {
- $json = json_decode($this->getRemoteContents("http://graph.facebook.com/http://$this->url"), true);
- return isset($json['share']['share_count'])?intval($json['share']['share_count']):0;
- }
- public function getFBcomments(){
- $json = json_decode($this->getRemoteContents("http://graph.facebook.com/http://$this->url"), true);
- return isset($json['share']['comment_count'])?intval($json['share']['comment_count']):0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement