Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.
/ jquery.socialstats Public archive

jQuery Socialstats allows you to easily get comments, likes and tweets from a given URL.

License

Notifications You must be signed in to change notification settings

fboldo/jquery.socialstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Socialstats

jQuery Socialstats allows you to easily get plain text comments, likes and tweets number from a given URL.

Installation

Simple put this code after the jQuery library:

<script src="/path/to/jquery.socialstats.min.js"></script>

Usage

Use data attributes to define which data do you want to get for each element:

<div class="socialstats">
	<span class="fb-likes" data-network="facebook" data-url="http://www.google.com.br"></span>
	<span class="fb-comments" data-network="facebook" data-action="comments" data-url="http://www.google.com.br"></span>
	<span class="tt-tweets" data-network="twitter" data-url="http://www.google.com.br"></span>
</div>

And then, initialize the plugin:

$(".socialstats").find("span").socialstats();

Author

Hyperbolic - www.hyperbolic.com.br

Contributors


Licence

MIT.

About

jQuery Socialstats allows you to easily get comments, likes and tweets from a given URL.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages