Social badges on the fly. (Twitter, Facebook / png, svg)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Procfile
README.md
pins.py
requirements.txt
setup.py

README.md

SoPins

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