Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bainternet

    (@bainternet)

    In an hackish way you can ex:

    function get_count_gplus($url){
    	$req = wp_remote_get('https://apis.google.com/_/widget/render/commentcount?bsv&usegapi=1&href='.$url);
    	if (is_wp_error($req) || $req['response']['code'] != 200) return '0';
    	$body = $req['body'];
    	$count = explode("<span>",$body);
    	$count = $count[1];
    	$count = explode(" ",trim($count));
    	return $count[0];
    }
    Thread Starter otta88sun

    (@otta88sun)

    Thank you! XD

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get number of comments of fb and g’ is closed to new replies.