-----: Just past this code and use it :------
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://www.facebook.com/qualityzoneinfotech" data-width="50px" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
<script language="javascript">
function shinra_fb_count( $url_or_id ) {
/* url or id (for optional validation) */
if( is_int( $url_or_id ) ) $url = 'http://graph.facebook.com/' . $url_or_id;
else $url = 'http://graph.facebook.com/' . $url_or_id;
/* get json */
$json = json_decode( file_get_contents( $url ), false );
/* has likes or shares? */
if( isset( $json->likes ) ) return (int) $json->likes;
elseif( isset( $json->shares ) ) return (int) $json->shares;
return 0; // otherwise zed
}
</script>
<div id="social"><!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
<a class="addthis_button_tweet"></a>
<a class="addthis_button_pinterest_pinit"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51572bbd79133ec6"></script>
<!-- AddThis Button END -->
</div>
No comments:
Post a Comment