This is an elegant and simple way to share blog posts in Slack channel with social share buttons.
The endpoint https://nameless-castle-24251.herokuapp.com/ can be used to test.
First of the all you need to create a Slash Command, see image:
Now, you can share your blog post using the command /share <URL of blog post>
, example /share http://www.johnidouglas.com.br/django-migrations-reversible-migrations/
.
If you want to count the total shares use the command /metric <URL of blog post>
, example /metric http://www.johnidouglas.com.br/django-migrations-reversible-migrations/
.
Note: Your page should have the graph objects og:title e og:url, for more details access http://ogp.me/
If you want to install and create your own endpoint, follow this steps.
Get the project
cd $GOPATH/src/
go get github.com/johnidm/seagal
Create an app on Heroku
heroku login
heroku create
Deploy your application
git push heroku master
Ready, you can use a new endpoint.