0
나는 여전히 share counter로 http://www.whaelse.com/en/grau-gruen-schwarz/에 문제가있다.facebook share counts wordpress
트위터와 Google+가 잘 작동합니다.
이 코드를 사용하여 페이스 북 공유를로드하려고했습니다.
function get_likes($url) {
$json_string = file_get_contents('https://graph.facebook.com/?id='.$url);
$json = json_decode($json_string, true);
return intval($json[$url]['shares']);
}
다음
function getSocialCount($url){
$urlCurrentPage = get_permalink($post->ID);
$strPageTitle = get_the_title($post->ID);
echo '<li><a href="http://www.facebook.com/sharer.php?u=' . $urlCurrentPage . '">facebook<span class="facebooksticky">'.get_likes($url).'</span></a></li>';
}
echo getSocialCount(get_permalink($post->ID));
하지만 난 여전히 0주 카운터를 얻을.