https://github.com/karan/sopins
Social badges on the fly. (Twitter, Facebook / png, svg)
https://github.com/karan/sopins
Last synced: about 1 year ago
JSON representation
Social badges on the fly. (Twitter, Facebook / png, svg)
- Host: GitHub
- URL: https://github.com/karan/sopins
- Owner: karan
- License: mit
- Created: 2014-06-04T15:52:19.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-15T16:18:25.000Z (over 11 years ago)
- Last Synced: 2025-04-04T23:29:50.623Z (about 1 year ago)
- Language: Python
- Homepage: http://sopins.heroku.com/
- Size: 426 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[SoPins](http://sopins.heroku.com/)
=================
Social badges on the fly. A fork of [pypins](https://github.com/badges/pypipins) by [karan](http://github.com/karan) ([@karangoel](http://twitter.com/karangoel)).
| Tweet | Like | Share |
| ----- | ---- | ----- |
|  |  |  |
Example badges for `http://www.goel.im/`.
## Usage
### Tweet
http://sopins.herokuapp.com/twitter//pin.
Example:
http://sopins.herokuapp.com/twitter/https://www.google.com/pin.png
Example that open Tweet popup:
[](https://twitter.com/intent/tweet?text=This+is+Amazing.&url=http://www.goel.im&via=KaranGoel)
This renders to: [](https://twitter.com/intent/tweet?text=This+is+Amazing.&url=http://www.goel.im&via=KaranGoel)
###LinkedIn
```
http://sopins.herokuapp.com/linkedin//pin.
```
Example:
```
http://sopins.herokuapp.com/linkedin/http://arstechnica.com/pin.png
```
### Facebook
**1. Share**
http://sopins.herokuapp.com/facebook/like//pin.
Example:
http://sopins.herokuapp.com/facebook/share/https://www.google.com/pin.png
Example that open Share popup:
[](https://www.facebook.com/sharer/sharer.php?u=http://www.goel.im)
This renders to: [](https://www.facebook.com/sharer/sharer.php?u=http://www.goel.im)
**2. Like**
http://sopins.herokuapp.com/facebook/share//pin.
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
```