Skip to content
/ sopins Public

Social badges on the fly. (Twitter, Facebook / png, svg)

License

Notifications You must be signed in to change notification settings

karan/sopins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social badges on the fly. A fork of pypins by karan (@karangoel).

Tweet Like Share

Example badges for http://www.goel.im/.

Usage

Tweet

http://sopins.herokuapp.com/twitter/<url>/pin.<format>

Example:

http://sopins.herokuapp.com/twitter/https://www.google.com/pin.png

Example that open Tweet popup:

[![](http://sopins.herokuapp.com/twitter/https://www.google.com/pin.png)](https://twitter.com/intent/tweet?text=This+is+Amazing.&amp;url=http://www.goel.im&amp;via=KaranGoel)

This renders to:

###LinkedIn

http://sopins.herokuapp.com/linkedin/<url>/pin.<format>

Example:

http://sopins.herokuapp.com/linkedin/http://arstechnica.com/pin.png

Facebook

1. Share

http://sopins.herokuapp.com/facebook/like/<url>/pin.<format>

Example:

http://sopins.herokuapp.com/facebook/share/https://www.google.com/pin.png

Example that open Share popup:

[![](http://sopins.herokuapp.com/facebook/share/https://www.google.com/pin.png)](https://www.facebook.com/sharer/sharer.php?u=http://www.goel.im)

This renders to:

2. Like

http://sopins.herokuapp.com/facebook/share/<url>/pin.<format>

Example:

http://sopins.herokuapp.com/facebook/like/https://www.google.com/pin.png

Formats

SoPins are available in variety of formats:

  • PNG
  • SVG
  • JPEG
  • GIF
  • TIFF

##Styles

SoPins has support for different styles for the pins, you can use either flat (default) , plastic and flat-square styles for your pins.

Using different styles is very easy, you just need to enter a style parameter in your URL.

For example:

http://sopins.herokuapp.com/facebook/like/https://www.google.com/pin.png?style=flat-square
http://sopins.herokuapp.com/linkedin/http://arstechnica.com/pin.png?style=plastic
http://sopins.herokuapp.com/linkedin/https://github.com/pin.png?style=flat

About

Social badges on the fly. (Twitter, Facebook / png, svg)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages